Examples of HttpRequestWrapper


Examples of org.apache.http.client.methods.HttpRequestWrapper

        testUnsafeMethodInvalidatesCacheForUriInLocationHeader(req);
    }

    @Test
    public void testPutInvalidatesCacheForThatUriInRelativeContentLocationHeader() throws Exception {
        final HttpRequestWrapper req = makeRequestWithBody("PUT","/");
        testUnsafeMethodInvalidatesCacheForRelativeUriInContentLocationHeader(req);
    }
View Full Code Here

Examples of org.apache.http.client.methods.HttpRequestWrapper

        testUnsafeMethodInvalidatesCacheForRelativeUriInContentLocationHeader(req);
    }

    @Test
    public void testDeleteInvalidatesCacheForThatUriInContentLocationHeader() throws Exception {
        final HttpRequestWrapper req = HttpRequestWrapper.wrap(new BasicHttpRequest("DELETE", "/"));
        testUnsafeMethodInvalidatesCacheForUriInContentLocationHeader(req);
    }
View Full Code Here

Examples of org.exist.http.servlets.HttpRequestWrapper

     */
    private void declareVariables(XQueryContext context, HttpServletRequest request, HttpServletResponse response) throws XPathException
    {
      if(request != null)
      {
        final RequestWrapper reqw = new HttpRequestWrapper(request, formEncoding, containerEncoding);
          context.declareVariable(RequestModule.PREFIX + ":request", reqw);
          context.declareVariable(SessionModule.PREFIX + ":session", reqw.getSession( false ));
      }
       
      if(response != null)
      {
        final ResponseWrapper respw = new HttpResponseWrapper(response);
View Full Code Here

Examples of org.impalaframework.web.servlet.wrapper.HttpRequestWrapper

       
        final ModuleManagementFacade moduleManagementFactory = WebServletUtils.getModuleManagementFacade(servletContext);
        HttpServletRequest wrappedRequest = null;
       
        if (moduleManagementFactory != null) {
            HttpRequestWrapper factory = ObjectUtils.cast(moduleManagementFactory.getBean(WebConstants.REQUEST_WRAPPER_FACTORY_BEAN_NAME), HttpRequestWrapper.class);
            if (factory != null) {
                wrappedRequest = factory.getWrappedRequest(request, servletContext, moduleMapping, applicationId);
            } else {
                wrappedRequest = request;
            }
        } else {
            wrappedRequest = request;
View Full Code Here

Examples of org.jboss.arquillian.warp.impl.client.execution.HttpRequestWrapper

            @Override
            public void filter(HttpRequest request) {
                try {
                    operation.performInContext(request);
                } catch (OperationalContextNotBoundException e) {
                    log.info("The request was observed out of a test's context, it won't be enriched: " + new HttpRequestWrapper(request));
                }
            }
        };
    }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.gateway.http.HttpRequestWrapper

    if (!"/".equals(servletPath)) {
      response.setStatus(404);
      return;
    }
   
    org.jboss.soa.esb.listeners.gateway.http.HttpRequestWrapper wrapper = new HttpRequestWrapper(request, response, null);
      
    try {
      if (synchronous) {
        messageDeliveryAdapter.deliverSync(wrapper, serviceTimeout);
      } else {
View Full Code Here

Examples of org.springframework.http.client.support.HttpRequestWrapper

    ClientHttpRequestInterceptor interceptor = new ClientHttpRequestInterceptor() {
      @Override
      public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)
          throws IOException {

        return execution.execute(new HttpRequestWrapper(request) {
          @Override
          public HttpHeaders getHeaders() {
            HttpHeaders headers = new HttpHeaders();
            headers.set(headerName, headerValue);
            return headers;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.