public class BoxBasicRestClient extends Object implements IBoxRESTClient
IBoxRESTClient.| Constructor and Description |
|---|
BoxBasicRestClient()
Constructor.
|
BoxBasicRestClient(int maxConnection,
int maxConnectionPerRoute,
long timePeriodCleanUpIdleConnection,
long idleTimeThreshold) |
| Modifier and Type | Method and Description |
|---|---|
IBoxResponse |
execute(IBoxRequest boxRequest)
Execute the API request and return a response.
|
org.apache.http.client.HttpClient |
getRawHttpClient() |
public BoxBasicRestClient(int maxConnection,
int maxConnectionPerRoute,
long timePeriodCleanUpIdleConnection,
long idleTimeThreshold)
maxConnection - maxConnectionPerRoute - timePeriodCleanUpIdleConnection - clean up idle connection every such period of time.idleTimeThreshold - time threshold, an idle connection will be closed if idled above this threshold of time.public BoxBasicRestClient()
public org.apache.http.client.HttpClient getRawHttpClient()
public IBoxResponse execute(IBoxRequest boxRequest) throws BoxRestException, AuthFatalFailureException
IBoxRESTClientexecute in interface IBoxRESTClientboxRequest - Incoming API request.BoxRestExceptionAuthFatalFailureExceptionCopyright © 2014. All Rights Reserved.