Codota Logo
CookieSpecFactory
Code IndexAdd Codota to your IDE (free)

How to use
CookieSpecFactory
in
org.apache.http.cookie

Best Java code snippets using org.apache.http.cookie.CookieSpecFactory (Showing top 11 results out of 315)

  • Common ways to obtain CookieSpecFactory
private void myMethod () {
CookieSpecFactory c =
  • Codota IconConcurrentHashMap concurrentHashMap;String str;Locale locale;concurrentHashMap.get(str.toLowerCase(locale))
  • Smart code suggestions by Codota
}
origin: robovm/robovm

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 * 
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification. 
 * 
 * @return {@link CookieSpec cookie specification}
 * 
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public synchronized CookieSpec getCookieSpec(final String name, final HttpParams params) 
  throws IllegalStateException {
  if (name == null) {
    throw new IllegalArgumentException("Name may not be null");
  }
  CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
} 
origin: MobiVM/robovm

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 * 
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification. 
 * 
 * @return {@link CookieSpec cookie specification}
 * 
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public synchronized CookieSpec getCookieSpec(final String name, final HttpParams params) 
  throws IllegalStateException {
  if (name == null) {
    throw new IllegalArgumentException("Name may not be null");
  }
  CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
} 
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 * 
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification. 
 * 
 * @return {@link CookieSpec cookie specification}
 * 
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public synchronized CookieSpec getCookieSpec(final String name, final HttpParams params) 
  throws IllegalStateException {
  if (name == null) {
    throw new IllegalArgumentException("Name may not be null");
  }
  CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
} 
origin: com.gluonhq/robovm-rt

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 * 
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification. 
 * 
 * @return {@link CookieSpec cookie specification}
 * 
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public synchronized CookieSpec getCookieSpec(final String name, final HttpParams params) 
  throws IllegalStateException {
  if (name == null) {
    throw new IllegalArgumentException("Name may not be null");
  }
  CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
} 
origin: FlexoVM/flexovm

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 * 
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification. 
 * 
 * @return {@link CookieSpec cookie specification}
 * 
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public synchronized CookieSpec getCookieSpec(final String name, final HttpParams params) 
  throws IllegalStateException {
  if (name == null) {
    throw new IllegalArgumentException("Name may not be null");
  }
  CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
} 
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 *
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification.
 *
 * @return {@link CookieSpec cookie specification}
 *
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public CookieSpec getCookieSpec(final String name, final HttpParams params)
  throws IllegalStateException {
  Args.notNull(name, "Name");
  final CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 *
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification.
 *
 * @return {@link CookieSpec cookie specification}
 *
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public CookieSpec getCookieSpec(final String name, final HttpParams params)
  throws IllegalStateException {
  Args.notNull(name, "Name");
  final CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
}
origin: ibinti/bugvm

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 *
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification.
 *
 * @return {@link CookieSpec cookie specification}
 *
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public CookieSpec getCookieSpec(final String name, final HttpParams params)
  throws IllegalStateException {
  Args.notNull(name, "Name");
  final CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpclient

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 *
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification.
 *
 * @return {@link CookieSpec cookie specification}
 *
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public CookieSpec getCookieSpec(final String name, final HttpParams params)
  throws IllegalStateException {
  Args.notNull(name, "Name");
  final CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
}
origin: com.hynnet/httpclient

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 *
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification.
 *
 * @return {@link CookieSpec cookie specification}
 *
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public CookieSpec getCookieSpec(final String name, final HttpParams params)
  throws IllegalStateException {
  Args.notNull(name, "Name");
  final CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
}
origin: Nextdoor/bender

/**
 * Gets the {@link CookieSpec cookie specification} with the given ID.
 *
 * @param name the {@link CookieSpec cookie specification} identifier
 * @param params the {@link HttpParams HTTP parameters} for the cookie
 *  specification.
 *
 * @return {@link CookieSpec cookie specification}
 *
 * @throws IllegalStateException if a policy with the given name cannot be found
 */
public CookieSpec getCookieSpec(final String name, final HttpParams params)
  throws IllegalStateException {
  Args.notNull(name, "Name");
  final CookieSpecFactory factory = registeredSpecs.get(name.toLowerCase(Locale.ENGLISH));
  if (factory != null) {
    return factory.newInstance(params);
  } else {
    throw new IllegalStateException("Unsupported cookie spec: " + name);
  }
}
org.apache.http.cookieCookieSpecFactory

Most used methods

  • newInstance
    Creates an instance of CookieSpec using given HTTP parameters.

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • findViewById (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Path (java.nio.file)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JComboBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now