public class AbstractDynamicHTTPMetadataResolver.BasicMetadataResponseHandler extends java.lang.Object implements org.apache.http.client.ResponseHandler<XMLObject>
| Constructor and Description |
|---|
BasicMetadataResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
getContentTypeMIMEType(java.lang.String value)
Get the effective Content-Type value to evaluate against the supported types.
|
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 java.io.IOException
handleResponse in interface org.apache.http.client.ResponseHandler<XMLObject>java.io.IOExceptionprotected void validateHttpResponse(@Nonnull
org.apache.http.HttpResponse response)
throws net.shibboleth.utilities.java.support.resolver.ResolverException
response - the received responsenet.shibboleth.utilities.java.support.resolver.ResolverException - if the response was not valid, or if there is a fatal error validating the responseprivate java.lang.String getContentTypeMIMEType(java.lang.String value)
value - the raw Content-Type value header