Package com.redwood.scheduler.api.r2w
Interface R2WRequest
- 
 public interface R2WRequestInterface for making SOAP, REST and content requests to R2W.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetResponseBody()Get the response content.intgetResponseCode()Get the HTTP response code.StringgetResponseHeader(String header)Get the value of a response header.Map<String,List<String>>getResponseHeaders()Get all the response headers, as a Map<String, List<String>> where keys are header names and the lists are values.StringgetResponsePhrase()Get the HTTP response phrase (as defined in RFC 2616 Sec 6.1.1.StringgetResponseVersion()Get the HTTP response version.voidsend()Send the request.voidsetRequestBody(String in)Set the value of the body (may be null).voidsetRequestHeader(String header, String value)Set the value of a HTTP header.voidsetRequestMethod(String in)Set the request method (GET, POST, ...).voidsetRequestTimeout(int milliseconds)Set the timeout in milliseconds, 0 for no timeout.
 
- 
- 
- 
Method Detail- 
setRequestHeadervoid setRequestHeader(String header, String value) Set the value of a HTTP header.- Parameters:
- header- the header.
- value- the value.
 
 - 
setRequestBodyvoid setRequestBody(String in) Set the value of the body (may be null).- Parameters:
- in- the body.
 
 - 
setRequestMethodvoid setRequestMethod(String in) Set the request method (GET, POST, ...).- Parameters:
- in- the request method.
 
 - 
setRequestTimeoutvoid setRequestTimeout(int milliseconds) Set the timeout in milliseconds, 0 for no timeout.- Parameters:
- milliseconds- number of milliseconds
 
 - 
sendvoid send() throws IOException Send the request.- Throws:
- IOException- if a network issue occurs.
 
 - 
getResponseVersionString getResponseVersion() Get the HTTP response version.- Returns:
- the HTTP response version.
 
 - 
getResponseCodeint getResponseCode() Get the HTTP response code.- Returns:
- the HTTP response code.
 
 - 
getResponsePhraseString getResponsePhrase() Get the HTTP response phrase (as defined in RFC 2616 Sec 6.1.1.- Returns:
- the HTTP response phrase.
 
 - 
getResponseHeadersMap<String,List<String>> getResponseHeaders() Get all the response headers, as a Map<String, List<String>> where keys are header names and the lists are values.- Returns:
- response headers.
 
 - 
getResponseHeaderString getResponseHeader(String header) Get the value of a response header.- Parameters:
- header- the name of the response header.
- Returns:
- the value or null if there is no value.
 
 - 
getResponseBodyInputStream getResponseBody() throws IOException Get the response content.- Returns:
- the response content.
- Throws:
- IOException- if an error occurs.
 
 
- 
 
-