public class HTTPHandler extends BaseRouterHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALLRESPONSEHEADERS
The all response header property.
|
static java.lang.String |
CONNECTTIMEOUT
The connection timeout property name.
|
static java.lang.String |
COOKIES |
static java.lang.String |
ERRORONSTATUS
The error on status property name.
|
static java.lang.String |
FIREANDFORGET
The error on status property name.
|
static java.lang.String |
HEADERS |
static java.lang.String |
HTTP_ETAG
The binding key for programmatic setting of url properties for HTTP GET.
|
static java.lang.String |
HTTP_HEADERPROPS
The binding key for programmatic setting of url properties for HTTP GET.
|
static java.lang.String |
HTTP_REQUEST_COOKIES
The binding key for programmatic setting of url properties for HTTP GET.
|
static java.lang.String |
HTTPEXIT
The exit class property name for processing HTTP request and response.
|
static java.lang.String |
HTTPGET_URLPROPS
The binding key for programmatic setting of url properties for HTTP GET.
|
static java.lang.String |
HTTPMETHOD
The HTTP method name property.
|
static java.lang.String |
HTTPMETHOD_DELETE
HTTP DELETE.
|
static java.lang.String |
HTTPMETHOD_GET
HTTP GET.
|
static java.lang.String |
HTTPMETHOD_HEAD
HTTP GET.
|
static java.lang.String |
HTTPMETHOD_PATCH
HTTP PATCH.
|
static java.lang.String |
HTTPMETHOD_POST
HTTP POST.
|
static java.lang.String |
HTTPMETHOD_PUT
HTTP PUT.
|
static java.lang.String |
READTIMEOUT
The connection timeout property name.
|
static java.lang.String |
RESPONSE_HEADERS |
static java.lang.String |
RESPONSE_STATUS
The error on status property name.
|
static java.lang.String |
RESPONSE_STATUS_TEXT
The error on status property name.
|
static java.lang.String |
URL
The HTTP url binding property name.
|
BIDICONFIG, PASSWORD, USERNAME
Constructor and Description |
---|
HTTPHandler() |
HTTPHandler(MaxEndPointInfo endPointInfo) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
encode(java.lang.String userName,
java.lang.String password)
encode the username and password with BASE64Encoder
|
int |
getConnectTimeout() |
java.lang.String |
getHttpExitName() |
java.lang.String |
getHttpMethod() |
java.util.List<RouterPropsInfo> |
getProperties() |
int |
getReadTimeout() |
java.lang.String |
getUrl() |
java.lang.String |
getUserName() |
byte[] |
invoke(java.util.Map metaData,
byte[] data)
All directly extending classes should call super.invoke(metaData, data) before proceeding
with the invoke.
|
public static final java.lang.String HTTPMETHOD_GET
public static final java.lang.String HTTPMETHOD_HEAD
public static final java.lang.String HTTPMETHOD_POST
public static final java.lang.String HTTPMETHOD_PATCH
public static final java.lang.String HTTPMETHOD_PUT
public static final java.lang.String HTTPMETHOD_DELETE
public static final java.lang.String RESPONSE_HEADERS
public static final java.lang.String HTTPGET_URLPROPS
public static final java.lang.String HTTP_HEADERPROPS
public static final java.lang.String HTTP_REQUEST_COOKIES
public static final java.lang.String HTTP_ETAG
public static final java.lang.String HTTPEXIT
public static final java.lang.String HTTPMETHOD
public static final java.lang.String HEADERS
public static final java.lang.String COOKIES
public static final java.lang.String URL
public static final java.lang.String CONNECTTIMEOUT
public static final java.lang.String READTIMEOUT
public static final java.lang.String ERRORONSTATUS
public static final java.lang.String ALLRESPONSEHEADERS
public static final java.lang.String RESPONSE_STATUS
public static final java.lang.String RESPONSE_STATUS_TEXT
public static final java.lang.String FIREANDFORGET
public HTTPHandler(MaxEndPointInfo endPointInfo)
endPointInfo
- public HTTPHandler()
public byte[] invoke(java.util.Map metaData, byte[] data) throws MXException
BaseRouterHandler
invoke
in interface RouterHandler
invoke
in class BaseRouterHandler
MXException
RouterHandler.invoke(java.util.Map, byte[])
public java.util.List<RouterPropsInfo> getProperties()
public int getReadTimeout()
public int getConnectTimeout()
public java.lang.String getHttpExitName()
public java.lang.String getUrl()
public java.lang.String getUserName()
public java.lang.String getHttpMethod()
public static java.lang.String encode(java.lang.String userName, java.lang.String password) throws java.lang.Exception
userName
- - a Stringpassword
- - a Stringjava.lang.Exception