Class PassThroughNHttpGetProcessor
- java.lang.Object
-
- org.wso2.carbon.mediation.transport.handlers.AbstractHttpGetRequestProcessor
-
- org.wso2.carbon.mediation.transport.handlers.PassThroughNHttpGetProcessor
-
- All Implemented Interfaces:
org.apache.synapse.transport.passthru.HttpGetRequestProcessor
public class PassThroughNHttpGetProcessor extends AbstractHttpGetRequestProcessor implements org.apache.synapse.transport.passthru.HttpGetRequestProcessor
Get Processor implementation for PassThrough Transport.
-
-
Field Summary
-
Fields inherited from class org.wso2.carbon.mediation.transport.handlers.AbstractHttpGetRequestProcessor
cfgCtx, CLASS_QN, CONTENT_TYPE, FAVICON_ICO, FAVICON_ICO_URL, getRequestProcessors, HOST_NAME, ITEM_QN, LOCALHOST, TEXT_HTML, WSO2_LOADBALANCER_SYS_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description PassThroughNHttpGetProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.propertiesvoid
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)
-
Methods inherited from class org.wso2.carbon.mediation.transport.handlers.AbstractHttpGetRequestProcessor
getServiceName, getServicePath, getServicesHTML, handleException, init, populateGetRequestProcessors
-
-
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.synapse.transport.passthru.SourceHandler sourceHandler) throws org.apache.axis2.AxisFault
- Specified by:
init
in interfaceorg.apache.synapse.transport.passthru.HttpGetRequestProcessor
- Throws:
org.apache.axis2.AxisFault
-
process
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)
- Specified by:
process
in interfaceorg.apache.synapse.transport.passthru.HttpGetRequestProcessor
-
generateServicesList
protected void generateServicesList(org.apache.http.HttpResponse response, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String servicePath)
Generates the services list.- Parameters:
response
- HttpResponseconn
- NHttpServerConnectionos
- OutputStreamservicePath
- service path of the service
-
isServiceListBlocked
protected boolean isServiceListBlocked(String incomingURI)
Is the incoming URI is requesting service list and http.block_service_list=true in nhttp.properties- Parameters:
incomingURI
- incoming URI- Returns:
- whether to proceed with incomingURI
-
handleBrowserException
protected void handleBrowserException(org.apache.http.HttpResponse response, org.apache.http.nio.NHttpServerConnection conn, OutputStream os, String msg, Exception e)
Handles browser exception.- Parameters:
response
- HttpResponseconn
- NHttpServerConnectionos
- OutputStreammsg
- messagee
- Exception
-
-