deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices
Class OGCRequestFactory

java.lang.Object
  extended by org.deegree.ogcwebservices.OGCRequestFactory

public class OGCRequestFactory
extends java.lang.Object

Factory for generating request objects for OGC Web Services.

Requests may be generated from KVP or DOM representations. Also contains methods that decide whether an incoming request representation is valid for a certain service.

Currently supported services are:

Version:
$Revision: 26210 $, $Date: 2010-08-27 13:55:22 +0200 (Fr, 27 Aug 2010) $
Author:
Andreas Poth , last edited by: $Author: apoth $

Field Summary
static java.lang.String CSW_SERVICE_NAME_EBRIM
          The service name of a getRepositoryItem request, only valid for the csw/ebrim.
 
Constructor Summary
OGCRequestFactory()
           
 
Method Summary
static OGCWebServiceRequest create(javax.servlet.ServletRequest request)
          Creates an OGCWebServiceRequest from the content contained within the passed request.
static OGCWebServiceRequest createFromKVP(java.util.Map<java.lang.String,java.lang.String> map)
          Creates an instance of an AbstractOGCWebServiceRequest from the passed KVP encoded request.
static OGCWebServiceRequest createFromXML(org.w3c.dom.Document doc)
          Creates an instance of an AbstractOGCWebServiceRequest from the passed DOM object.
static java.lang.String getTargetService(java.lang.String service, java.lang.String request, org.w3c.dom.Document doc)
          return the type of service the passed request targets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSW_SERVICE_NAME_EBRIM

public static final java.lang.String CSW_SERVICE_NAME_EBRIM
The service name of a getRepositoryItem request, only valid for the csw/ebrim. Fixed value: "urn:x-ogc:specification:cswebrim:Service:OGC-CSW:ebRIM"

See Also:
Constant Field Values
Constructor Detail

OGCRequestFactory

public OGCRequestFactory()
Method Detail

create

public static OGCWebServiceRequest create(javax.servlet.ServletRequest request)
                                   throws OGCWebServiceException
Creates an OGCWebServiceRequest from the content contained within the passed request.

Parameters:
request -
Returns:
the request object
Throws:
OGCWebServiceException

createFromXML

public static OGCWebServiceRequest createFromXML(org.w3c.dom.Document doc)
                                          throws OGCWebServiceException
Creates an instance of an AbstractOGCWebServiceRequest from the passed DOM object. Supported OWS are 'WMS', 'WFS', 'WCS' and 'CSW'. If a request for another service is passed or a request that isn't supported by one of the listed services an exception will be thrown.
Notice that not all listed services will support request processing by reading the request to be performed from a DOM object. In this case also an exception will be thrown even if the same request may can be performed if KVP is used.

Parameters:
doc -
Returns:
the request object
Throws:
OGCWebServiceException

createFromKVP

public static OGCWebServiceRequest createFromKVP(java.util.Map<java.lang.String,java.lang.String> map)
                                          throws OGCWebServiceException
Creates an instance of an AbstractOGCWebServiceRequest from the passed KVP encoded request. Supported OWS are 'WMS', 'WFS', 'WCS' and 'CSW'. If a request for another service is passed or a request that isn't supported by one of the listed services an exception will be thrown.
Notice that not all listed services will support request processing by reading the request to be performed from KVPs. In this case also an exception will be thrown even if the same request may be performed if a DOM object is used.

Parameters:
map -
Returns:
the request object
Throws:
OGCWebServiceException

getTargetService

public static java.lang.String getTargetService(java.lang.String service,
                                                java.lang.String request,
                                                org.w3c.dom.Document doc)
return the type of service the passed request targets

Parameters:
service -
request -
doc -
Returns:
the type of service the passed request targets

deegree 2.5 (2011/06/29 09:44 build-8-official)

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