Code example for ResponseContent

0
        this.scheme = scheme;
        httpProcessor = new ImmutableHttpProcessor(
                new HttpResponseInterceptor[]{
                        new ResponseDate(),
                        new ResponseServer(),
                        new ResponseContent(),
                        new ResponseConnControl()});
 
        responseFactory = new DefaultHttpResponseFactory();
 
        sourceConnections = new SourceConnections();
    } 
 
    public void build() throws AxisFault { 
        super.build(); 
 
        port = ParamUtils.getRequiredParamInt(parameters, "port");
 
        Parameter hostParameter = inDescription.getParameter(TransportListener.HOST_ADDRESS);
        if (hostParameter != null) {
            host = ((String) hostParameter.getValue()).trim();