public class ServerWorker
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
ServerWorker(org.apache.axis2.context.ConfigurationContext cfgCtx,
java.lang.String schemeName,
org.apache.axis2.transport.base.MetricsCollector metrics,
org.apache.http.nio.NHttpServerConnection conn,
ServerHandler serverHandler,
org.apache.http.HttpRequest request,
java.io.InputStream is,
org.apache.http.HttpResponse response,
java.io.OutputStream os,
boolean isRestDispatching,
HttpGetRequestProcessor httpGetRequestProcessor)
Create a new server side worker to process an incoming message and optionally begin creating
its output.
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.nio.NHttpServerConnection |
getConn() |
java.io.InputStream |
getIs() |
java.io.OutputStream |
getOutputStream() |
java.lang.String |
getRemoteAddress() |
org.apache.http.HttpResponse |
getResponse() |
ServerHandler |
getServiceHandler() |
void |
run()
Process the incoming request
|
public ServerWorker(org.apache.axis2.context.ConfigurationContext cfgCtx, java.lang.String schemeName, org.apache.axis2.transport.base.MetricsCollector metrics, org.apache.http.nio.NHttpServerConnection conn, ServerHandler serverHandler, org.apache.http.HttpRequest request, java.io.InputStream is, org.apache.http.HttpResponse response, java.io.OutputStream os, boolean isRestDispatching, HttpGetRequestProcessor httpGetRequestProcessor)
cfgCtx
- the configuration contextmetrics
- metrics collectorconn
- the underlying http connectionserverHandler
- the handler of the server side messagesrequest
- the http request received (might still be in the process of being streamed)is
- the stream input stream to read the request bodyresponse
- the response to be populated if applicableos
- the output stream to write the response body if one is applicablepublic void run()
run
in interface java.lang.Runnable
public org.apache.http.HttpResponse getResponse()
public java.io.OutputStream getOutputStream()
public java.io.InputStream getIs()
public ServerHandler getServiceHandler()
public org.apache.http.nio.NHttpServerConnection getConn()
public java.lang.String getRemoteAddress()
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.