public class AbstractDynamicHTTPMetadataResolver.BasicMetadataResponseHandler extends Object implements org.apache.http.client.ResponseHandler<XMLObject>
Constructor and Description |
---|
BasicMetadataResponseHandler() |
Modifier and Type | Method and Description |
---|---|
XMLObject |
handleResponse(org.apache.http.HttpResponse response) |
protected void |
validateHttpResponse(org.apache.http.HttpResponse response)
Validate the received HTTP response instance, such as checking for supported content types.
|
public XMLObject handleResponse(@Nonnull org.apache.http.HttpResponse response) throws IOException
handleResponse
in interface org.apache.http.client.ResponseHandler<XMLObject>
IOException
protected void validateHttpResponse(@Nonnull org.apache.http.HttpResponse response) throws ResolverException
response
- the received responseResolverException
- if the response was not valid, or if there is a fatal error validating the responseCopyright © 2016 JBoss by Red Hat. All rights reserved.