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

org.deegree.ogcwebservices
Class OGCRequestFactory

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

public class OGCRequestFactory
extends 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: 19229 $, $Date: 2009-08-19 10:02:26 +0200 (Mi, 19. Aug 2009) $
Author:
Andreas Poth , last edited by: $Author: apoth $

Field Summary
static 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(Map<String,String> map)
          Creates an instance of an AbstractOGCWebServiceRequest from the passed KVP encoded request.
static OGCWebServiceRequest createFromXML(Document doc)
          Creates an instance of an AbstractOGCWebServiceRequest from the passed DOM object.
static String getTargetService(String service, String request, 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 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(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(Map<String,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 String getTargetService(String service,
                                      String request,
                                      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.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