public abstract class AbstractHTTPAction extends Object implements NativeCallableUnit
AbstractHTTPAction
is the base class for all HTTP Connector Actions.Constructor and Description |
---|
AbstractHTTPAction() |
Modifier and Type | Method and Description |
---|---|
protected org.wso2.transport.http.netty.message.HTTPCarbonMessage |
createOutboundRequestMsg(Context context) |
protected BStruct |
createStruct(Context context,
String structName,
String protocolPackage)
Creates a ballerina struct.
|
protected void |
executeNonBlockingAction(DataContext dataContext) |
protected void |
executeNonBlockingAction(DataContext dataContext,
boolean async) |
protected static AcceptEncodingConfig |
getAcceptEncodingConfig(String acceptEncodingConfig) |
protected String |
getAcceptEncodingConfigFromEndpointConfig(BStruct httpClientStruct) |
protected void |
handleAcceptEncodingHeader(org.wso2.transport.http.netty.message.HTTPCarbonMessage outboundRequest,
AcceptEncodingConfig acceptEncodingConfig) |
boolean |
isBlocking() |
protected void |
prepareOutboundRequest(Context context,
BStruct connector,
String path,
org.wso2.transport.http.netty.message.HTTPCarbonMessage outboundRequest) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
protected org.wso2.transport.http.netty.message.HTTPCarbonMessage createOutboundRequestMsg(Context context)
protected String getAcceptEncodingConfigFromEndpointConfig(BStruct httpClientStruct)
protected static AcceptEncodingConfig getAcceptEncodingConfig(String acceptEncodingConfig)
protected void handleAcceptEncodingHeader(org.wso2.transport.http.netty.message.HTTPCarbonMessage outboundRequest, AcceptEncodingConfig acceptEncodingConfig)
protected void prepareOutboundRequest(Context context, BStruct connector, String path, org.wso2.transport.http.netty.message.HTTPCarbonMessage outboundRequest)
protected void executeNonBlockingAction(DataContext dataContext) throws org.wso2.transport.http.netty.contract.ClientConnectorException
org.wso2.transport.http.netty.contract.ClientConnectorException
protected void executeNonBlockingAction(DataContext dataContext, boolean async) throws org.wso2.transport.http.netty.contract.ClientConnectorException
org.wso2.transport.http.netty.contract.ClientConnectorException
public boolean isBlocking()
isBlocking
in interface NativeCallableUnit
Copyright © 2018 WSO2. All rights reserved.