Tabnine Logo
HttpMessageBuilder.checkNotCookie
Code IndexAdd Tabnine to your IDE (free)

How to use
checkNotCookie
method
in
com.hotels.styx.api.HttpMessageBuilder

Best Java code snippets using com.hotels.styx.api.HttpMessageBuilder.checkNotCookie (Showing top 8 results out of 315)

origin: com.hotels.styx/styx-api

/**
 * Sets the (only) value for the header with the specified name.
 * <p/>
 * All existing values for the same header will be removed.
 *
 * @param name  The name of the header
 * @param value The value of the header
 * @return {@code this}
 */
public SELF header(CharSequence name, Instant value) {
  checkNotCookie(name);
  headers.set(name, checkNotNull(value));
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

/**
 * Adds a new header with the specified {@code name} and {@code value}.
 * <p/>
 * Will not replace any existing values for the header.
 *
 * @param name   The name of the header
 * @param values The value of the header
 * @return {@code this}
 */
public SELF addHeader(CharSequence name, Iterable<?> values) {
  checkNotCookie(name);
  headers.add(name, values);
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

/**
 * Sets the (only) value for the header with the specified name.
 * <p/>
 * All existing values for the same header will be removed.
 *
 * @param name   The name of the header
 * @param values The value of the header
 * @return {@code this}
 */
public SELF header(CharSequence name, Iterable<?> values) {
  checkNotCookie(name);
  headers.set(name, values);
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

/**
 * Adds a new header with the specified {@code name} and {@code value}.
 * <p/>
 * Will not replace any existing values for the header.
 *
 * @param name  The name of the header
 * @param value The value of the header
 * @return {@code this}
 */
public SELF addHeader(CharSequence name, String value) {
  checkNotCookie(name);
  headers.add(name, value);
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

/**
 * Sets the (only) value for the header with the specified name.
 * <p/>
 * All existing values for the same header will be removed.
 *
 * @param name  The name of the header
 * @param value The value of the header
 * @return {@code this}
 */
public SELF header(CharSequence name, String value) {
  checkNotCookie(name);
  headers.set(name, checkNotNull(value));
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

/**
 * Sets the (only) value for the header with the specified name.
 * <p/>
 * All existing values for the same header will be removed.
 *
 * @param name  The name of the header
 * @param value The value of the header
 * @return {@code this}
 */
public SELF header(CharSequence name, Object value) {
  checkNotCookie(name);
  headers.set(name, checkNotNull(value));
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

/**
 * Adds a new header with the specified {@code name} and {@code value}.
 * <p/>
 * Will not replace any existing values for the header.
 *
 * @param name  The name of the header
 * @param value The value of the header
 * @return {@code this}
 */
public SELF addHeader(CharSequence name, Object value) {
  checkNotCookie(name);
  headers.add(name, value);
  return (SELF) this;
}
origin: com.hotels.styx/styx-api

public SELF headers(HttpHeader... headers) {
  for (HttpHeader header : headers) {
    checkNotCookie(header.name());
    this.headers.set(header.name(), header.value());
  }
  return (SELF) this;
}
com.hotels.styx.apiHttpMessageBuildercheckNotCookie

Popular methods of HttpMessageBuilder

  • body
    Sets the message body. As the content length is known, this header will also be set.
  • header
    Sets the (only) value for the header with the specified name. All existing values for the same heade
  • headers
  • isInteger

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Notification (javax.management)
  • Github Copilot 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