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) |
| Modifier and Type | Method and Description |
|---|---|
com.ning.http.client.AsyncHttpClient |
getAsyncHttpClient() |
String |
getEntityBody()
Gets the request content template.
|
ParallecHeader |
getHeaderMetadata()
Gets the header metadata.
|
HttpMethod |
getHttpMethod()
Gets the http method.
|
HttpPollerProcessor |
getHttpPollerProcessor() |
String |
getRequestPort()
Gets the request port.
|
String |
getRequestUrlPostfix()
Gets the request url postfix.
|
void |
initValuesNa()
for none HTTP type: set some default for HTTP (not used) to avoid NPE.
|
boolean |
isPollable() |
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) |
void |
setEntityBody(String entityBody) |
void |
setHeaderMetadata(ParallecHeader parallecHeader)
Sets the header metadata.
|
void |
setHttpMethod(HttpMethod httpMethod)
Sets the http method.
|
void |
setHttpPollerProcessor(HttpPollerProcessor httpPollerProcessor) |
void |
setPollable(boolean isPollable) |
void |
setRequestPort(String requestPort)
Sets the request port.
|
void |
setRequestUrlPostfix(String requestUrlPostfix)
will trim the leading and trailing whitespace if not null.
|
String |
toString() |
boolean |
validation()
Validation.
|
public HttpMeta()
public HttpMeta(HttpMethod httpMethod, String requestUrlPostfix, String entityBody, String requestPort, ParallecHeader parallecHeader)
public 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)
public 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)
public boolean isPollable()
public void setPollable(boolean isPollable)
public com.ning.http.client.AsyncHttpClient getAsyncHttpClient()
public void setAsyncHttpClient(com.ning.http.client.AsyncHttpClient asyncHttpClient)
Copyright © 2015–2016 eBay. All rights reserved.