deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.security.owsrequestvalidator.csw
Class GetRepositoryItemResponseValidator

java.lang.Object
  extended by org.deegree.security.owsrequestvalidator.ResponseValidator
      extended by org.deegree.security.owsrequestvalidator.csw.GetRepositoryItemResponseValidator

 class GetRepositoryItemResponseValidator
extends ResponseValidator

Version:
1.1, $Revision: 6375 $, $Date: 2007-03-26 14:04:38 +0200 (Mo, 26 Mrz 2007) $
Author:
Andreas Poth , last edited by: $Author: wanhoff $

Field Summary
 
Fields inherited from class org.deegree.security.owsrequestvalidator.ResponseValidator
gpv, policy, UNKNOWNMIMETYPE
 
Constructor Summary
GetRepositoryItemResponseValidator(Policy policy)
           
 
Method Summary
 byte[] validateResponse(String service, byte[] response, String mime, User user)
          validates the passed object as a response to a OWS request.
 
Methods inherited from class org.deegree.security.owsrequestvalidator.ResponseValidator
getPolicy, setPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRepositoryItemResponseValidator

public GetRepositoryItemResponseValidator(Policy policy)
Parameters:
policy -
Method Detail

validateResponse

public byte[] validateResponse(String service,
                               byte[] response,
                               String mime,
                               User user)
                        throws InvalidParameterValueException
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: 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 response
user -
Returns:
the response array
Throws:
InvalidParameterValueException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org