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 httpCarbonMessage) |
protected void |
extractPropertiesAndStartResourceExecution(org.wso2.transport.http.netty.message.HTTPCarbonMessage httpCarbonMessage,
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 httpCarbonMessage,
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 httpCarbonMessage) |
protected static final String HTTP_RESOURCE
public BallerinaHTTPConnectorListener(HTTPServicesRegistry httpServicesRegistry, Value[] filterHolders)
public void onMessage(org.wso2.transport.http.netty.message.HTTPCarbonMessage httpCarbonMessage)
onMessage in interface org.wso2.transport.http.netty.contract.HttpConnectorListenerpublic void onError(Throwable throwable)
onError in interface org.wso2.transport.http.netty.contract.HttpConnectorListenerprotected void extractPropertiesAndStartResourceExecution(org.wso2.transport.http.netty.message.HTTPCarbonMessage httpCarbonMessage,
HttpResource httpResource)
protected BValue getRequestFilterContext(HttpResource httpResource)
protected boolean accessed(org.wso2.transport.http.netty.message.HTTPCarbonMessage httpCarbonMessage)
protected void invokeRequestFilters(org.wso2.transport.http.netty.message.HTTPCarbonMessage httpCarbonMessage,
BValue requestObject,
BValue filterCtxt,
WorkerExecutionContext parentCtx)
httpCarbonMessage - 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.