public class HttpMeta extends Object
| Constructor and Description |
|---|
HttpMeta()
Instantiates a new command meta.
|
HttpMeta(HttpMethod httpMethod,
String requestUrlPostfix,
String entityBody,
String requestPort,
ParallecHeader parallecHeader)
Instantiates a new http meta.
|
| Modifier and Type | Method and Description |
|---|---|
com.ning.http.client.AsyncHttpClient |
getAsyncHttpClient()
Gets the async http client.
|
String |
getEntityBody()
Gets the request content template.
|
ParallecHeader |
getHeaderMetadata()
Gets the header metadata.
|
HttpMethod |
getHttpMethod()
Gets the http method.
|
HttpPollerProcessor |
getHttpPollerProcessor()
Gets the http poller processor.
|
String |
getRequestPort()
Gets the request port.
|
String |
getRequestUrlPostfix()
Gets the request url postfix.
|
ResponseHeaderMeta |
getResponseHeaderMeta()
Gets the response header meta.
|
void |
initValuesNa()
for none HTTP type: set some default for HTTP (not used) to avoid NPE.
|
boolean |
isPollable()
Checks if is pollable.
|
static String |
replaceDefaultFullRequestContent(String requestContentTemplate)
Replace default full request content.
|
static String |
replaceFullRequestContent(String requestContentTemplate,
String replacementString)
Replace full request content.
|
void |
setAsyncHttpClient(com.ning.http.client.AsyncHttpClient asyncHttpClient)
Sets the async http client.
|
void |
setEntityBody(String entityBody)
Sets the entity body.
|
void |
setHeaderMetadata(ParallecHeader parallecHeader)
Sets the header metadata.
|
void |
setHttpMethod(HttpMethod httpMethod)
Sets the http method.
|
void |
setHttpPollerProcessor(HttpPollerProcessor httpPollerProcessor)
Sets the http poller processor.
|
void |
setPollable(boolean isPollable)
Sets the pollable.
|
void |
setRequestPort(String requestPort)
Sets the request port.
|
void |
setRequestUrlPostfix(String requestUrlPostfix)
will trim the leading and trailing whitespace if not null.
|
void |
setResponseHeaderMeta(ResponseHeaderMeta responseHeaderMeta)
Sets the response header meta.
|
String |
toString() |
boolean |
validation()
Validation.
|
public HttpMeta()
public HttpMeta(HttpMethod httpMethod, String requestUrlPostfix, String entityBody, String requestPort, ParallecHeader parallecHeader)
httpMethod - the http methodrequestUrlPostfix - the request url postfixentityBody - the entity bodyrequestPort - the request portparallecHeader - the parallec headerpublic void initValuesNa()
public boolean validation()
throws ParallelTaskInvalidException
ParallelTaskInvalidException - the parallel task invalid exceptionpublic String getRequestPort()
public void setRequestPort(String requestPort)
requestPort - the new request portpublic HttpMethod getHttpMethod()
public void setHttpMethod(HttpMethod httpMethod)
httpMethod - the new http methodpublic String getRequestUrlPostfix()
public void setRequestUrlPostfix(String requestUrlPostfix)
requestUrlPostfix - the new request url postfixpublic String getEntityBody()
public void setEntityBody(String entityBody)
entityBody - the new entity bodypublic static String replaceFullRequestContent(String requestContentTemplate, String replacementString)
requestContentTemplate - the request content templatereplacementString - the replacement stringpublic static String replaceDefaultFullRequestContent(String requestContentTemplate)
requestContentTemplate - the request content templatepublic ParallecHeader getHeaderMetadata()
public void setHeaderMetadata(ParallecHeader parallecHeader)
parallecHeader - the new header metadatapublic HttpPollerProcessor getHttpPollerProcessor()
public void setHttpPollerProcessor(HttpPollerProcessor httpPollerProcessor)
httpPollerProcessor - the new http poller processorpublic boolean isPollable()
public void setPollable(boolean isPollable)
isPollable - the new pollablepublic com.ning.http.client.AsyncHttpClient getAsyncHttpClient()
public void setAsyncHttpClient(com.ning.http.client.AsyncHttpClient asyncHttpClient)
asyncHttpClient - the new async http clientpublic ResponseHeaderMeta getResponseHeaderMeta()
public void setResponseHeaderMeta(ResponseHeaderMeta responseHeaderMeta)
responseHeaderMeta - the new response header metaCopyright © 2015–2017 eBay. All rights reserved.