public class PassThroughNHttpGetProcessor extends Object implements HttpGetRequestProcessor
Modifier and Type | Field and Description |
---|---|
protected org.apache.axis2.context.ConfigurationContext |
cfgCtx |
protected SourceHandler |
sourceHandler |
Constructor and Description |
---|
PassThroughNHttpGetProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateWsdl(org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext msgContext,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String serviceName,
Map<String,String> parameters)
Generate WSDL.
|
protected void |
generateWsdl2(org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext msgContext,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String serviceName)
Generate WSDL2.
|
protected void |
generateXsd(org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext msgContext,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String serviceName,
Map<String,String> parameters)
Generates Schema.
|
protected static String |
getIpAddress()
Whatever this method returns as the IP is ignored by the actual http/s listener when
its getServiceEPR is invoked.
|
protected String |
getServiceName(org.apache.http.HttpRequest request)
Returns the service name.
|
protected void |
handleBrowserException(org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext msgContext,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String msg,
Exception e)
Handles browser exception.
|
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
SourceHandler handler)
Initialize the HttpGetProcessor
|
protected static boolean |
isIP(String hostAddress) |
protected boolean |
isServiceListBlocked(String incomingURI)
Is the incoming URI is requesting service list and
http.block_service_list=true in nhttp.properties
|
protected boolean |
isWSDLProvidedForProxyService(org.apache.axis2.description.AxisService service)
Checks whether a wsdl is provided for a proxy service.
|
void |
process(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext msgContext,
org.apache.http.nio.NHttpServerConnection conn,
boolean isRestDispatching)
Process the HTTP GET request.
|
protected org.apache.axis2.context.ConfigurationContext cfgCtx
protected SourceHandler sourceHandler
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx, SourceHandler handler) throws org.apache.axis2.AxisFault
HttpGetRequestProcessor
init
in interface HttpGetRequestProcessor
cfgCtx
- servers configuration contexthandler
- dispatching handlerorg.apache.axis2.AxisFault
- if an error occurspublic void process(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.axis2.context.MessageContext msgContext, org.apache.http.nio.NHttpServerConnection conn, boolean isRestDispatching)
HttpGetRequestProcessor
process
in interface HttpGetRequestProcessor
request
- The HttpRequestresponse
- The HttpResponsemsgContext
- The MessageContextconn
- The NHttpServerConnectionisRestDispatching
- Rest dispatchingprotected void generateWsdl(org.apache.http.HttpResponse response, org.apache.axis2.context.MessageContext msgContext, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String serviceName, Map<String,String> parameters)
response
- HttpResponsemsgContext
- MessageContextconn
- NHttpServerConnectionos
- OutputStreamserviceName
- service nameparameters
- parametersprotected void generateWsdl2(org.apache.http.HttpResponse response, org.apache.axis2.context.MessageContext msgContext, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String serviceName)
response
- HttpResponsemsgContext
- MessageContextconn
- NHttpServerConnectionos
- OutputStreamserviceName
- service nameprotected String getServiceName(org.apache.http.HttpRequest request)
request
- HttpRequestprotected void generateXsd(org.apache.http.HttpResponse response, org.apache.axis2.context.MessageContext msgContext, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String serviceName, Map<String,String> parameters)
response
- HttpResponsemsgContext
- Current MessageContextconn
- NHttpServerConnectionos
- OutputStreamserviceName
- service nameparameters
- url parametersprotected void handleBrowserException(org.apache.http.HttpResponse response, org.apache.axis2.context.MessageContext msgContext, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String msg, Exception e)
response
- HttpResponseconn
- NHttpServerConnectionos
- OutputStreammsg
- messagee
- Exceptionprotected boolean isServiceListBlocked(String incomingURI)
incomingURI
- incoming URIprotected boolean isWSDLProvidedForProxyService(org.apache.axis2.description.AxisService service)
service
- AxisServiceprotected static String getIpAddress() throws SocketException
SocketException
- if the socket can not be accessedprotected static boolean isIP(String hostAddress)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.