public class PassThroughNHttpGetProcessor extends AbstractHttpGetRequestProcessor implements org.apache.synapse.transport.passthru.HttpGetRequestProcessor
cfgCtx, CLASS_QN, CONTENT_TYPE, FAVICON_ICO, FAVICON_ICO_URL, getRequestProcessors, HOST_NAME, ITEM_QN, LOCALHOST, TEXT_HTML, WSO2_LOADBALANCER_SYS_PROPERTY
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 void |
handleBrowserException(org.apache.http.HttpResponse response,
org.apache.http.nio.NHttpServerConnection conn,
OutputStream os,
String msg,
Exception e)
Handles browser exception.
|
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) |
getServiceName, getServicePath, getServicesHTML, handleException, init, populateGetRequestProcessors
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 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
- ExceptionCopyright © 2022 WSO2. All rights reserved.