public class BallerinaHTTPConnectorListener extends Object implements org.wso2.transport.http.netty.contract.HttpConnectorListener
Modifier and Type | Field and Description |
---|---|
protected static String |
HTTP_RESOURCE |
Constructor and Description |
---|
BallerinaHTTPConnectorListener(HTTPServicesRegistry httpServicesRegistry,
Value[] filterHolders) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accessed(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage) |
protected void |
extractPropertiesAndStartResourceExecution(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage,
HttpResource httpResource) |
protected BValue |
getRequestFilterContext(HttpResource httpResource) |
protected boolean |
hasFilters()
Method to retrive if filters have been specified.
|
protected void |
invokeRequestFilters(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage,
BValue requestObject,
BValue filterCtxt,
WorkerExecutionContext parentCtx)
Invokes the set of filters for the request path.
|
void |
onError(Throwable throwable) |
void |
onMessage(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage) |
protected static final String HTTP_RESOURCE
public BallerinaHTTPConnectorListener(HTTPServicesRegistry httpServicesRegistry, Value[] filterHolders)
public void onMessage(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage)
onMessage
in interface org.wso2.transport.http.netty.contract.HttpConnectorListener
public void onError(Throwable throwable)
onError
in interface org.wso2.transport.http.netty.contract.HttpConnectorListener
protected void extractPropertiesAndStartResourceExecution(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage, HttpResource httpResource)
protected BValue getRequestFilterContext(HttpResource httpResource)
protected boolean accessed(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage)
protected void invokeRequestFilters(org.wso2.transport.http.netty.message.HTTPCarbonMessage inboundMessage, BValue requestObject, BValue filterCtxt, WorkerExecutionContext parentCtx)
inboundMessage
- HTTPCarbonMessage
instancerequestObject
- Representation of ballerina.net.Request structfilterCtxt
- filtering criteriaparentCtx
- WorkerExecutionContext instance, which corresponds to the current worker execution
contextprotected boolean hasFilters()
Copyright © 2018 WSO2. All rights reserved.