public class PassThroughNHttpGetProcessor extends Object implements org.apache.synapse.transport.passthru.HttpGetRequestProcessor
Constructor and Description |
---|
PassThroughNHttpGetProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateServicesList(org.apache.http.HttpResponse response,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String servicePath)
Generates the services list.
|
protected String |
getServiceName(org.apache.http.HttpRequest request)
Returns the service name.
|
protected String |
getServicesHTML(String prefix)
Returns the HTML text for the list of services deployed.
|
protected void |
handleBrowserException(org.apache.http.HttpResponse response,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String msg,
Exception e)
Handles browser exception.
|
void |
handleException(String msg,
Exception e) |
void |
init(org.apache.axis2.context.ConfigurationContext configurationContext,
org.apache.synapse.transport.passthru.SourceHandler sourceHandler) |
protected boolean |
isServiceListBlocked(String incomingURI)
Is the incoming URI is requesting service list and http.block_service_list=true in
nhttp.properties
|
void |
process(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.axis2.context.MessageContext messageContext,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream outputStream,
boolean b) |
public void init(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.synapse.transport.passthru.SourceHandler sourceHandler) throws org.apache.axis2.AxisFault
init
in interface org.apache.synapse.transport.passthru.HttpGetRequestProcessor
org.apache.axis2.AxisFault
public void process(org.apache.http.HttpRequest request, org.apache.http.HttpResponse response, org.apache.axis2.context.MessageContext messageContext, org.apache.http.nio.NHttpServerConnection conn, OutputStream outputStream, boolean b)
process
in interface org.apache.synapse.transport.passthru.HttpGetRequestProcessor
protected void generateServicesList(org.apache.http.HttpResponse response, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String servicePath)
response
- HttpResponseconn
- NHttpServerConnectionos
- OutputStreamservicePath
- service path of the serviceprotected String getServicesHTML(String prefix)
prefix
- to be used for the Service namesprotected boolean isServiceListBlocked(String incomingURI)
incomingURI
- incoming URIprotected void handleBrowserException(org.apache.http.HttpResponse response, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String msg, Exception e)
response
- HttpResponseconn
- NHttpServerConnectionos
- OutputStreammsg
- messagee
- Exceptionprotected String getServiceName(org.apache.http.HttpRequest request)
request
- HttpRequestCopyright © 2017 WSO2. All rights reserved.