public interface RIDCHttpMethod
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestHeader(String name, String value)
Add a request header
|
int |
execute()
Execute the request
|
InputStream |
getResponseBodyAsStream()
Get the response as a stream
|
RIDCHttpHeader |
getResponseHeader(String headerName)
Get response header
|
List<RIDCHttpHeader> |
getResponseHeaders()
Get all response headers
|
RIDCHttpClient |
getRidcClient()
Get the connection instance that this method is associated with
|
int |
getStatusCode()
Get the status code of the response
|
String |
getStatusLine()
Get the status line of the response
|
URI |
getURI()
Get the uri of the request
|
void |
releaseConnection()
Release the connection
|
void |
setCookiePolicy(String policy)
Set Cookie policy for this action
|
void |
setFollowRedirects(boolean followRedirects)
Set the follow directs option for the connection
|
void |
setParameter(String param, String value)
Set request parameters
|
void |
setQueryString(List<NameValuePair> paramList)
Set the query string for the request
|
void |
setRequestConfig(IdcRequestConfig requestConfig)
Set the request-specific config for the request
|
void |
setRequestHeader(String headerName, String headerValue)
Set the request header for the request
|
void |
setServiceLog(ServiceLog serviceLog)
Set the service log for the request
|
void addRequestHeader(String name, String value)
name - the header namevalue - the header valueInputStream getResponseBodyAsStream() throws IOException, ProtocolException
IOExceptionProtocolExceptionRIDCHttpHeader getResponseHeader(String headerName) throws ProtocolException
headerName -ProtocolExceptionList<RIDCHttpHeader> getResponseHeaders() throws ProtocolException
ProtocolException
int getStatusCode()
throws ProtocolException
ProtocolExceptionString getStatusLine() throws ProtocolException
ProtocolExceptionURI getURI() throws URISyntaxException
URISyntaxExceptionvoid releaseConnection()
void setCookiePolicy(String policy)
policy -void setFollowRedirects(boolean followRedirects)
followRedirects -void setParameter(String param, String value)
param - param namevalue - param valuevoid setQueryString(List<NameValuePair> paramList)
paramList -void setRequestHeader(String headerName, String headerValue)
headerName -headerValue -RIDCHttpClient getRidcClient()
int execute()
throws IOException,
ProtocolException
IOExceptionProtocolExceptionvoid setServiceLog(ServiceLog serviceLog)
serviceLog -void setRequestConfig(IdcRequestConfig requestConfig)
requestConfig -