Tabnine Logo
MimeType$Facet.getRegistrationTreeName
Code IndexAdd Tabnine to your IDE (free)

How to use
getRegistrationTreeName
method
in
com.nike.riposte.server.http.mimetype.MimeType$Facet

Best Java code snippets using com.nike.riposte.server.http.mimetype.MimeType$Facet.getRegistrationTreeName (Showing top 3 results out of 315)

origin: Nike-Inc/riposte

  @Override
  public String toString() {
    if (toStringCache == null) {
      toStringCache =
        type.getName() +
        "/" +
        subType.getFacet().getRegistrationTreeName().map(tree -> tree + ".").orElse("") +
        subType.getName() +
        subType.getSuffix().map(suffix -> "+" + suffix).orElse("") +
        parameters.entrySet().stream().map(entry -> ";" + entry.getKey() + "=" + entry.getValue())
             .collect(Collectors.joining());
    }
    return toStringCache;
  }
}
origin: Nike-Inc/riposte

  @Override
  public String toString() {
    if (toStringCache == null) {
      toStringCache = subType.getFacet().getRegistrationTreeName().map(tree -> tree + ".").orElse("") +
              subType.getName() +
              subType.getSuffix().map(suffix -> "+" + suffix).orElse("");
    }
    return toStringCache;
  }
}
origin: Nike-Inc/riposte

private MediaRangeSubType mrSubType(String typeString) {
  if (MediaRange.WILDCARD_SUBTYPE.toString().equals(typeString))
    return MediaRange.WILDCARD_SUBTYPE;
  MimeType.Facet facet = MimeType.Facet.STANDARD;
  if (typeString.startsWith(MimeType.Facet.VENDOR.getRegistrationTreeName().get()))
    facet = MimeType.Facet.VENDOR;
  Optional<String> suffix = Optional.empty();
  if (typeString.endsWith("+json"))
    suffix = Optional.of("json");
  return new MimeMediaRangeSubType(MimeType.SubType.of(facet, typeString, suffix));
}
com.nike.riposte.server.http.mimetypeMimeType$FacetgetRegistrationTreeName

Javadoc

The registration tree name for this Facet, if one exits.

Popular methods of MimeType$Facet

  • forRegistrationTreeName
    Attempts to find a a Facet by its registrationTreeName.
  • hashCode

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now