Class AxisHttpService
java.lang.Object
org.apache.axis2.transport.http.server.AxisHttpService
This class is an extension of the default HTTP service responsible for
maintaining and populating the
MessageContext for incoming Axis
requests.-
Constructor Summary
ConstructorsConstructorDescriptionAxisHttpService(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.ConnectionReuseStrategy connStrategy, org.apache.hc.core5.http.impl.Http1StreamListener streamListener, org.apache.hc.core5.http.impl.io.DefaultClassicHttpResponseFactory responseFactory, org.apache.axis2.context.ConfigurationContext configurationContext, Worker worker) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoService(AxisHttpRequest request, AxisHttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.axis2.context.MessageContext msgContext) intgetStatusFromAxisFault(org.apache.axis2.AxisFault fault) protected voidhandleException(org.apache.hc.core5.http.HttpException ex, org.apache.hc.core5.http.ClassicHttpResponse response) voidhandleRequest(AxisHttpConnection conn, org.apache.hc.core5.http.protocol.HttpContext localContext) protected int
-
Constructor Details
-
AxisHttpService
public AxisHttpService(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.ConnectionReuseStrategy connStrategy, org.apache.hc.core5.http.impl.Http1StreamListener streamListener, org.apache.hc.core5.http.impl.io.DefaultClassicHttpResponseFactory responseFactory, org.apache.axis2.context.ConfigurationContext configurationContext, Worker worker)
-
-
Method Details
-
handleRequest
public void handleRequest(AxisHttpConnection conn, org.apache.hc.core5.http.protocol.HttpContext localContext) throws IOException, org.apache.hc.core5.http.HttpException - Throws:
IOExceptionorg.apache.hc.core5.http.HttpException
-
handleException
protected void handleException(org.apache.hc.core5.http.HttpException ex, org.apache.hc.core5.http.ClassicHttpResponse response) -
toStatusCode
-
doService
protected void doService(AxisHttpRequest request, AxisHttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.axis2.context.MessageContext msgContext) throws org.apache.hc.core5.http.HttpException, IOException - Throws:
org.apache.hc.core5.http.HttpExceptionIOException
-
getStatusFromAxisFault
public int getStatusFromAxisFault(org.apache.axis2.AxisFault fault)
-