public abstract class AbstractHttpRequestFactory extends java.lang.Object implements RequestFactory
| Constructor and Description |
|---|
AbstractHttpRequestFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Throwable |
getError(Response response)
Return error associated with response.
|
protected abstract RequestBuilder |
getRequestBuilder() |
Request |
newRequest(RequestContext requestContext)
Create a request within specified context.
|
protected abstract RequestBuilder getRequestBuilder()
@Nonnull public Request newRequest(@Nonnull RequestContext requestContext) throws java.lang.Exception
RequestFactorynewRequest in interface RequestFactoryrequestContext - the request context.java.lang.Exception - if there is an error creating request.@Nullable
protected java.lang.Throwable getError(@Nonnull
Response response)
response - the response.