Lines Matching defs:context
83 public void process(final HttpRequest request, final HttpContext context)
88 if (context == null) {
89 throw new IllegalArgumentException("HTTP context may not be null");
93 CookieStore cookieStore = (CookieStore) context.getAttribute(
96 this.log.info("Cookie store not available in HTTP context");
101 CookieSpecRegistry registry= (CookieSpecRegistry) context.getAttribute(
104 this.log.info("CookieSpec registry not available in HTTP context");
109 HttpHost targetHost = (HttpHost) context.getAttribute(
112 throw new IllegalStateException("Target host not specified in HTTP context");
116 ManagedClientConnection conn = (ManagedClientConnection) context.getAttribute(
119 throw new IllegalStateException("Client connection not specified in HTTP context");
191 // Stick the CookieSpec and CookieOrigin instances to the HTTP context
193 context.setAttribute(ClientContext.COOKIE_SPEC, cookieSpec);
194 context.setAttribute(ClientContext.COOKIE_ORIGIN, cookieOrigin);