/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }