Lines Matching refs:request
48 * properties of the current request without modifying the original
51 * This class is also capable of resetting the request headers to
52 * the state of the original request.
69 public RequestWrapper(final HttpRequest request) throws ProtocolException {
71 if (request == null) {
72 throw new IllegalArgumentException("HTTP request may not be null");
74 this.original = request;
75 setParams(request.getParams());
77 if (request instanceof HttpUriRequest) {
78 this.uri = ((HttpUriRequest) request).getURI();
79 this.method = ((HttpUriRequest) request).getMethod();
82 RequestLine requestLine = request.getRequestLine();
86 throw new ProtocolException("Invalid request URI: "
90 this.version = request.getProtocolVersion();