org.deegree.security.owsrequestvalidator
Class GetCapabilitiesResponseValidator
java.lang.Object
org.deegree.security.owsrequestvalidator.ResponseValidator
org.deegree.security.owsrequestvalidator.GetCapabilitiesResponseValidator
public class GetCapabilitiesResponseValidator
- extends ResponseValidator
- Version:
- $Revision: 25547 $, $Date: 2010-07-27 17:11:57 +0200 (Di, 27 Jul 2010) $
- Author:
- Andreas Poth , last edited by: $Author: aschmitz $
Method Summary |
byte[] |
validateResponse(java.lang.String service,
byte[] response,
java.lang.String mime,
User user)
validates the passed object as a response to a OWS request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetCapabilitiesResponseValidator
public GetCapabilitiesResponseValidator(Policy policy,
java.lang.String proxyURL)
- Parameters:
policy
- proxyURL
-
validateResponse
public byte[] validateResponse(java.lang.String service,
byte[] response,
java.lang.String mime,
User user)
throws InvalidParameterValueException,
UnauthorizedException
- validates the passed object as a response to a OWS request. The validity of the response may is assigned to
specific user rights. If the passed user is <>null this will be evaluated.
the reponse may contain three valid kinds of objects:
- a serialized image
- a xml encoded exception
- a svg-encoded vector image
Each of these types can be identified by the mime-type of the response that is also passed to the method.
If something basic went wrong it is possible that not further specified kind of object is passed as response. In
this case the method will throw an InvalidParameterValueException to avoid sending bad responses to the
client.
- Specified by:
validateResponse
in class ResponseValidator
- Parameters:
service
- service which produced the response (WMS, WFS ...)response
- mime
- mime-type of the responseuser
-
- Returns:
- the new response array
- Throws:
InvalidParameterValueException
UnauthorizedException
- See Also:
GetMapRequestValidator.validateRequest(OGCWebServiceRequest, User)
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org