Class HTTPRequestApacheImpl
java.lang.Object
com.aeontronix.restclient.http.apache.HTTPRequestApacheImpl
- All Implemented Interfaces:
HTTPRequest
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPRequestApacheImpl(org.apache.http.client.methods.HttpRequestBase request) -
Method Summary
Modifier and TypeMethodDescription@Nullable InputStreamlonggetURI()booleanhasBody()booleanbooleanvoidsetBody(byte[] data) voidsetBody(InputStream is) voidvoid
-
Constructor Details
-
HTTPRequestApacheImpl
public HTTPRequestApacheImpl(org.apache.http.client.methods.HttpRequestBase request)
-
-
Method Details
-
getURI
- Specified by:
getURIin interfaceHTTPRequest
-
setURI
- Specified by:
setURIin interfaceHTTPRequest
-
isBodyAllowed
public boolean isBodyAllowed()- Specified by:
isBodyAllowedin interfaceHTTPRequest
-
setBody
- Specified by:
setBodyin interfaceHTTPRequest
-
setBody
public void setBody(byte[] data) - Specified by:
setBodyin interfaceHTTPRequest
-
hasBody
public boolean hasBody()- Specified by:
hasBodyin interfaceHTTPRequest
-
getContent
- Specified by:
getContentin interfaceHTTPRequest- Throws:
IOException
-
getContentSize
public long getContentSize()- Specified by:
getContentSizein interfaceHTTPRequest
-
setHeader
- Specified by:
setHeaderin interfaceHTTPRequest
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceHTTPRequest
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceHTTPRequest
-
getMethod
- Specified by:
getMethodin interfaceHTTPRequest
-