public class POBHttpRequest
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
POBHttpRequest.HTTP_METHOD |
| Constructor and Description |
|---|
POBHttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
protected POBHttpRequest |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Method retrieve request headers
|
java.lang.String |
getPostData()
Method retrieves post data
|
POBHttpRequest.HTTP_METHOD |
getRequestMethod()
Method retrieves http request method
|
java.lang.String |
getRequestTag()
Method retrieves value of request tag
|
float |
getRetryBackoffMultiplier()
Method retrieves retrybackofmultiplier
|
int |
getRetryCount()
Method retrieve request timeout count
|
int |
getTimeout()
Method retrieve request timeout value
|
java.lang.String |
getUrl()
Method retrieves request url
|
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Method is used to set request header
|
void |
setPostData(java.lang.String postData)
Method is used to set post data
|
void |
setRequestMethod(POBHttpRequest.HTTP_METHOD requestMethod)
Method is used to set Http request method
|
void |
setRequestTag(java.lang.String tag)
Method is used set request tag
|
void |
setRetryBackoffMultiplier(float retryBackoffMultiplier)
Method is used to set value of retryBackoffMultiplier
|
void |
setRetryCount(int retryCount)
Method is used to set request retry count
|
void |
setTimeout(int timeout)
Method is used to set http request timeout
|
void |
setUrl(java.lang.String url)
Method is used to set request url
|
java.lang.String |
toString() |
@Nullable public java.lang.String getRequestTag()
public void setRequestTag(@Nullable
java.lang.String tag)
tag - takes value of type stringpublic int getTimeout()
public void setTimeout(int timeout)
timeout - takes value of int typepublic int getRetryCount()
public void setRetryCount(int retryCount)
retryCount - takes the value of int typepublic float getRetryBackoffMultiplier()
public void setRetryBackoffMultiplier(float retryBackoffMultiplier)
retryBackoffMultiplier - to type float@NonNull public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public void setHeaders(@NonNull
java.util.Map<java.lang.String,java.lang.String> headers)
headers - of type mapprotected POBHttpRequest clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Object@Nullable public java.lang.String getUrl()
public void setUrl(@Nullable
java.lang.String url)
url - is of type Stringpublic POBHttpRequest.HTTP_METHOD getRequestMethod()
@Nullable public java.lang.String getPostData()
public void setPostData(@Nullable
java.lang.String postData)
postData - of type Stringpublic void setRequestMethod(POBHttpRequest.HTTP_METHOD requestMethod)
requestMethod - of type HTTP_METHOD