Package org.jboss.netty.handler.codec.http

Examples of org.jboss.netty.handler.codec.http.HttpRequest.addHeader()


  public static final IcapRequest createREQMODWithGetRequestNoBodyIcapMessage() {
    IcapRequest request = new DefaultIcapRequest(IcapVersion.ICAP_1_0,IcapMethod.REQMOD,"icap://icap.mimo.ch:1344/reqmod","icap-server.net");
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    request.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return request;
  }
View Full Code Here


    IcapRequest request = new DefaultIcapRequest(IcapVersion.ICAP_1_0,IcapMethod.REQMOD,"icap://icap.mimo.ch:1344/reqmod","icap-server.net");
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    request.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return request;
  }
 
View Full Code Here

    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    request.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return request;
  }
 
  public static final IcapRequest createREQMODWithGetRequestNoBodyAndEncapsulationHeaderIcapMessage() {
View Full Code Here

    request.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return request;
  }
 
  public static final IcapRequest createREQMODWithGetRequestNoBodyAndEncapsulationHeaderIcapMessage() {
    IcapRequest request = createREQMODWithGetRequestNoBodyIcapMessage();
View Full Code Here

    IcapResponse response = new DefaultIcapResponse(IcapVersion.ICAP_1_0,IcapResponseStatus.OK);
    response.addHeader("Host","icap-server.net");
    response.addHeader("ISTag","Serial-0815");
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    response.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return response;
View Full Code Here

    response.addHeader("Host","icap-server.net");
    response.addHeader("ISTag","Serial-0815");
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    response.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return response;
  }
View Full Code Here

    response.addHeader("ISTag","Serial-0815");
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    response.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return response;
  }
 
View Full Code Here

    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/");
    response.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return response;
  }
 
  public static final ChannelBuffer createREQMODWithGetRequestResponse() throws UnsupportedEncodingException {
View Full Code Here

    response.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain");
    httpRequest.addHeader("Accept-Encoding","compress");
    httpRequest.addHeader("Cookie","ff39fk3jur@4ii0e02i");
    httpRequest.addHeader("If-None-Match","\"xyzzy\", \"r2d2xxxx\"");
    return response;
  }
 
  public static final ChannelBuffer createREQMODWithGetRequestResponse() throws UnsupportedEncodingException {
    ChannelBuffer buffer = ChannelBuffers.dynamicBuffer();
View Full Code Here

 
  public static final IcapMessage createRESPMODWithGetRequestNoBodyIcapMessage() {
    IcapRequest request = new DefaultIcapRequest(IcapVersion.ICAP_1_0,IcapMethod.RESPMOD,"icap://icap.mimo.ch:1344/reqmod","icap-server.net");
    HttpRequest httpRequest = new DefaultHttpRequest(HttpVersion.HTTP_1_1,HttpMethod.GET,"/origin-resource");
    request.setHttpRequest(httpRequest);
    httpRequest.addHeader("Host","www.origin-server.com");
    httpRequest.addHeader("Accept","text/html, text/plain, image/gif");
    httpRequest.addHeader("Accept-Encoding","gzip, compress");
    HttpResponse httpResponse = new DefaultHttpResponse(HttpVersion.HTTP_1_1,HttpResponseStatus.OK);
    request.setHttpResponse(httpResponse);
    httpResponse.addHeader("Date","Mon, 10 Jan 2000 09:52:22 GMT");
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.