Tabnine Logo
ImmutableMultivaluedMap.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.glassfish.jersey.internal.util.collection.ImmutableMultivaluedMap
constructor

Best Java code snippets using org.glassfish.jersey.internal.util.collection.ImmutableMultivaluedMap.<init> (Showing top 20 results out of 315)

origin: jersey/jersey

public Token(final String token,
       final String secret,
       final String consumerKey,
       final String callbackUrl,
       final Map<String, List<String>> attributes) {
  this(token, secret, consumerKey, callbackUrl, null, Collections.<String>emptySet(),
      new ImmutableMultivaluedMap<>(getImmutableMap(attributes)));
}
origin: jersey/jersey

/**
 * Returns an empty immutable map.
 *
 * @return an empty immutable map.
 */
public static <K, V> ImmutableMultivaluedMap<K, V> empty() {
  return new ImmutableMultivaluedMap<K, V>(new MultivaluedHashMap<K, V>());
}
origin: jersey/jersey

/**
 * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart},
 * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers
 * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead.
 *
 * @return immutable map of HTTP header values.
 * @throws ParseException if an un-expected/in-correct value is found during parsing the headers.
 */
public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException {
  return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers));
}
origin: jersey/jersey

/**
 * Returns an empty immutable map.
 *
 * @return an empty immutable map.
 */
public static <K, V> ImmutableMultivaluedMap<K, V> empty() {
  return new ImmutableMultivaluedMap<K, V>(new MultivaluedHashMap<K, V>());
}
origin: jersey/jersey

@Override
public MultivaluedMap<String, String> getQueryParameters(final boolean decode) {
  if (decode) {
    if (decodedQueryParamsView != null) {
      return decodedQueryParamsView;
    }
    decodedQueryParamsView =
        new ImmutableMultivaluedMap<>(UriComponent.decodeQuery(getRequestUri(), true));
    return decodedQueryParamsView;
  } else {
    if (encodedQueryParamsView != null) {
      return encodedQueryParamsView;
    }
    encodedQueryParamsView =
        new ImmutableMultivaluedMap<>(UriComponent.decodeQuery(getRequestUri(), false));
    return encodedQueryParamsView;
  }
}
origin: jersey/jersey

@Override
public MultivaluedMap<String, String> getPathParameters(final boolean decode) {
  if (decode) {
    if (decodedTemplateValuesView != null) {
      return decodedTemplateValuesView;
    } else if (decodedTemplateValues == null) {
      decodedTemplateValues = new MultivaluedHashMap<>();
      for (final Map.Entry<String, List<String>> e : encodedTemplateValues.entrySet()) {
        decodedTemplateValues.put(
            UriComponent.decode(e.getKey(), UriComponent.Type.PATH_SEGMENT),
            // we need to keep the ability to add new entries
            e.getValue().stream().map(s -> UriComponent.decode(s, UriComponent.Type.PATH))
             .collect(Collectors.toCollection(ArrayList::new)));
      }
    }
    decodedTemplateValuesView = new ImmutableMultivaluedMap<>(decodedTemplateValues);
    return decodedTemplateValuesView;
  } else {
    return encodedTemplateValuesView;
  }
}
origin: jersey/jersey

@Override
public MultivaluedMap<String, String> getPathParameters(final boolean decode) {
  if (decode) {
    if (decodedTemplateValuesView != null) {
      return decodedTemplateValuesView;
    } else if (decodedTemplateValues == null) {
      decodedTemplateValues = new MultivaluedHashMap<>();
      for (final Map.Entry<String, List<String>> e : encodedTemplateValues.entrySet()) {
        decodedTemplateValues.put(
            UriComponent.decode(e.getKey(), UriComponent.Type.PATH_SEGMENT),
            // we need to keep the ability to add new entries
            e.getValue().stream().map(s -> UriComponent.decode(s, UriComponent.Type.PATH))
             .collect(Collectors.toCollection(ArrayList::new)));
      }
    }
    decodedTemplateValuesView = new ImmutableMultivaluedMap<>(decodedTemplateValues);
    return decodedTemplateValuesView;
  } else {
    return encodedTemplateValuesView;
  }
}
origin: jersey/jersey

@Override
public MultivaluedMap<String, String> getQueryParameters(final boolean decode) {
  if (decode) {
    if (decodedQueryParamsView != null) {
      return decodedQueryParamsView;
    }
    decodedQueryParamsView =
        new ImmutableMultivaluedMap<>(UriComponent.decodeQuery(getRequestUri(), true));
    return decodedQueryParamsView;
  } else {
    if (encodedQueryParamsView != null) {
      return encodedQueryParamsView;
    }
    encodedQueryParamsView =
        new ImmutableMultivaluedMap<>(UriComponent.decodeQuery(getRequestUri(), false));
    return encodedQueryParamsView;
  }
}
origin: org.glassfish.jersey.core/jersey-server

@Override
public MultivaluedMap<String, String> getQueryParameters(final boolean decode) {
  if (decode) {
    if (decodedQueryParamsView != null) {
      return decodedQueryParamsView;
    }
    decodedQueryParamsView =
        new ImmutableMultivaluedMap<>(UriComponent.decodeQuery(getRequestUri(), true));
    return decodedQueryParamsView;
  } else {
    if (encodedQueryParamsView != null) {
      return encodedQueryParamsView;
    }
    encodedQueryParamsView =
        new ImmutableMultivaluedMap<>(UriComponent.decodeQuery(getRequestUri(), false));
    return encodedQueryParamsView;
  }
}
origin: org.glassfish.jersey.core/jersey-server

@Override
public MultivaluedMap<String, String> getPathParameters(final boolean decode) {
  if (decode) {
    if (decodedTemplateValuesView != null) {
      return decodedTemplateValuesView;
    } else if (decodedTemplateValues == null) {
      decodedTemplateValues = new MultivaluedHashMap<>();
      for (final Map.Entry<String, List<String>> e : encodedTemplateValues.entrySet()) {
        decodedTemplateValues.put(
            UriComponent.decode(e.getKey(), UriComponent.Type.PATH_SEGMENT),
            // we need to keep the ability to add new entries
            e.getValue().stream().map(s -> UriComponent.decode(s, UriComponent.Type.PATH))
             .collect(Collectors.toCollection(ArrayList::new)));
      }
    }
    decodedTemplateValuesView = new ImmutableMultivaluedMap<>(decodedTemplateValues);
    return decodedTemplateValuesView;
  } else {
    return encodedTemplateValuesView;
  }
}
origin: com.sap.cloud.yaas.rammler/rammler-java-client-support

public MultivaluedMap<String, Object> getAllQueries()
{
  return new ImmutableMultivaluedMap<>(queries);
}
origin: hstaudacher/osgi-jax-rs-connector

public Token(final String token,
       final String secret,
       final String consumerKey,
       final String callbackUrl,
       final Map<String, List<String>> attributes) {
  this(token, secret, consumerKey, callbackUrl, null, Collections.<String>emptySet(),
      new ImmutableMultivaluedMap<>(getImmutableMap(attributes)));
}
origin: com.eclipsesource.jaxrs/jersey-all

public Token(final String token,
       final String secret,
       final String consumerKey,
       final String callbackUrl,
       final Map<String, List<String>> attributes) {
  this(token, secret, consumerKey, callbackUrl, null, Collections.<String>emptySet(),
      new ImmutableMultivaluedMap<>(getImmutableMap(attributes)));
}
origin: org.glassfish.jersey.bundles/jaxrs-ri

/**
 * Returns an empty immutable map.
 *
 * @return an empty immutable map.
 */
public static <K, V> ImmutableMultivaluedMap<K, V> empty() {
  return new ImmutableMultivaluedMap<K, V>(new MultivaluedHashMap<K, V>());
}
origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Returns an empty immutable map.
 *
 * @return an empty immutable map.
 */
public static <K, V> ImmutableMultivaluedMap<K, V> empty() {
  return new ImmutableMultivaluedMap<K, V>(new MultivaluedHashMap<K, V>());
}
origin: org.glassfish.jersey.media/jersey-media-multipart

/**
 * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart},
 * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers
 * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead.
 *
 * @return immutable map of HTTP header values.
 * @throws ParseException if an un-expected/in-correct value is found during parsing the headers.
 */
public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException {
  return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers));
}
origin: org.glassfish.jersey.core/jersey-common

/**
 * Returns an empty immutable map.
 *
 * @return an empty immutable map.
 */
public static <K, V> ImmutableMultivaluedMap<K, V> empty() {
  return new ImmutableMultivaluedMap<K, V>(new MultivaluedHashMap<K, V>());
}
origin: kalixia/Grapi

public ApiResponse(UUID id, HttpResponseStatus status, ByteBuf content, String contentType) {
  super(id, content, contentType, new ImmutableMultivaluedMap<>(new MultivaluedHashMap<String, String>()));
  this.status = status;
}
origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Returns an immutable map of parameterized HTTP header value(s) for this {@code BodyPart},
 * keyed by header name. Key comparisons in the returned map must be case-insensitive. If you wish to modify the headers
 * map for this {@code BodyPart}, modify the map returned by {@code getHeaders()} instead.
 *
 * @return immutable map of HTTP header values.
 * @throws ParseException if an un-expected/in-correct value is found during parsing the headers.
 */
public MultivaluedMap<String, ParameterizedHeader> getParameterizedHeaders() throws ParseException {
  return new ImmutableMultivaluedMap<>(new ParameterizedHeadersMap(headers));
}
origin: hstaudacher/osgi-jax-rs-connector

/**
 * Returns an empty immutable map.
 *
 * @return an empty immutable map.
 */
public static <K, V> ImmutableMultivaluedMap<K, V> empty() {
  return new ImmutableMultivaluedMap<K, V>(new MultivaluedHashMap<K, V>());
}
org.glassfish.jersey.internal.util.collectionImmutableMultivaluedMap<init>

Javadoc

Creates a new ImmutableMultivaluedMap.

Popular methods of ImmutableMultivaluedMap

  • empty
    Returns an empty immutable map.

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • BoxLayout (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • From CI to AI: The AI layer in your organization
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