public interface IBoxRequest
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add header into request.
|
void |
addQueryParam(java.lang.String name,
java.lang.String value)
Add query parameters into request url.
|
java.lang.String |
getApiUrlPath()
Get api path for the api call.
|
IBoxRequestAuth |
getAuth()
Auth.
|
java.lang.String |
getAuthority()
Get authority for the api call.
|
ICookie |
getCookie()
Cookie.
|
int |
getExpectedResponseCode()
Get expected response code.
|
org.apache.http.params.HttpParams |
getHttpParams()
HttpParams
|
org.apache.http.HttpEntity |
getRequestEntity()
Request entity.
|
RestMethod |
getRestMethod()
REST method, GET/PUT/POST/DELETE/...
|
java.lang.String |
getScheme()
Get scheme for the api call.
|
org.apache.http.client.methods.HttpUriRequest |
prepareRequest()
Prepare the request by setting all headers, query params, entities...
|
void |
setAuth(IBoxRequestAuth auth)
Set authorization.
|
void |
setCookie(ICookie cookie)
Set cookie.
|
IBoxRequestAuth getAuth()
ICookie getCookie()
org.apache.http.HttpEntity getRequestEntity()
org.apache.http.params.HttpParams getHttpParams()
void addQueryParam(java.lang.String name, java.lang.String value)
name
- name of the parametervalue
- value of the parametervoid addHeader(java.lang.String name, java.lang.String value)
name
- name of headervalue
- value of headervoid setAuth(IBoxRequestAuth auth)
auth
- authvoid setCookie(ICookie cookie)
cookie
- cookie.org.apache.http.client.methods.HttpUriRequest prepareRequest() throws BoxRestException, AuthFatalFailureException
BoxRestException
AuthFatalFailureException
RestMethod getRestMethod()
java.lang.String getScheme()
java.lang.String getAuthority()
java.lang.String getApiUrlPath()
int getExpectedResponseCode()