| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IgnitedHttpRequest
| Method Summary | |
|---|---|
 IgnitedHttpRequest | 
expecting(Integer... statusCodes)
Define the set of HTTP status codes which you anticipate to be returned by the server, including error codes you'd like to explicitly handle.  | 
 String | 
getRequestUrl()
 | 
 IgnitedHttpRequest | 
retries(int retries)
Set maximum number of retries for this particular request.  | 
 IgnitedHttpResponse | 
send()
Sends the current request.  | 
 org.apache.http.client.methods.HttpUriRequest | 
unwrap()
 | 
 IgnitedHttpRequest | 
withTimeout(int timeout)
Set the global timeout for this specific request (connection and socket timeout).  | 
| Method Detail | 
|---|
org.apache.http.client.methods.HttpUriRequest unwrap()
String getRequestUrl()
IgnitedHttpRequest expecting(Integer... statusCodes)
HttpResponseException. This is very useful when dealing with REST-ful Web services,
 where it is common to serve error stati that indicate a failure in the application logic
 (e.g. 404 if a resource doesn't exist). You typically don't want to treat those as connection
 errors, but gracefully handle them like a normal success code.
statusCodes - the set of status codes that you want to manually handle as part of the response
IgnitedHttpRequest retries(int retries)
retries - the maximum number of retries should the request fail
IgnitedHttpRequest withTimeout(int timeout)
timeout - the timeout in milliseconds
IgnitedHttpResponse send()
                         throws ConnectException
ConnectException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||