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

org.deegree.ogcwebservices.wmps
Class DefaultRequestManager

java.lang.Object
  extended by org.deegree.ogcwebservices.wmps.DefaultRequestManager
All Implemented Interfaces:
RequestManager

public class DefaultRequestManager
extends java.lang.Object
implements RequestManager

Default Handler to save the PrintMap requests to the 'HSQLDB' and send email after processing the request.

Version:
$Revision: 22068 $, $Date:20.03.2007$
Author:
Anup Deshmukh, last edited by: $Author:wanhoff$

Field Summary
protected static NamespaceContext nsContext
           
 
Constructor Summary
DefaultRequestManager(WMPSConfiguration configuration, PrintMap request)
          Creates a new DefaultRequestManager instance.
 
Method Summary
 PrintMapResponseDocument createFinalResponse(java.lang.String message, java.lang.String exception)
          Export the PrintMap service final response to a PrintMapResponseDocument.
 PrintMapResponseDocument createInitialResponse(java.lang.String message)
          Send an intial response back to the user, depending on whether the request has been successfull saved in the DB or not.
 WMPSConfiguration getConfiguration()
          returns the configuration used by the handler
 PrintMap getRequest()
          returns the request used by the handler
 void saveRequestToDB()
          Opens a connection to a database based on the properties file in the resources directory and saves the current PrintMap request in the table for later access.
 void sendEmail(PrintMapResponseDocument response)
          Send an Email to the address provided in the PrintMap request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nsContext

protected static NamespaceContext nsContext
Constructor Detail

DefaultRequestManager

public DefaultRequestManager(WMPSConfiguration configuration,
                             PrintMap request)
Creates a new DefaultRequestManager instance.

Parameters:
configuration -
request - request to perform
Method Detail

getConfiguration

public WMPSConfiguration getConfiguration()
returns the configuration used by the handler

Returns:
WMPSConfiguration

getRequest

public PrintMap getRequest()
returns the request used by the handler

Returns:
PrintMap request

saveRequestToDB

public void saveRequestToDB()
                     throws OGCWebServiceException
Opens a connection to a database based on the properties file in the resources directory and saves the current PrintMap request in the table for later access.

Specified by:
saveRequestToDB in interface RequestManager
Throws:
OGCWebServiceException

createInitialResponse

public PrintMapResponseDocument createInitialResponse(java.lang.String message)
                                               throws OGCWebServiceException
Send an intial response back to the user, depending on whether the request has been successfull saved in the DB or not. The email address from the request is used to send the reply.

Specified by:
createInitialResponse in interface RequestManager
Parameters:
message -
Returns:
PrintMapResponseDocument
Throws:
OGCWebServiceException

sendEmail

public void sendEmail(PrintMapResponseDocument response)
               throws OGCWebServiceException
Send an Email to the address provided in the PrintMap request.

Specified by:
sendEmail in interface RequestManager
Parameters:
response -
Throws:
OGCWebServiceException

createFinalResponse

public PrintMapResponseDocument createFinalResponse(java.lang.String message,
                                                    java.lang.String exception)
                                             throws OGCWebServiceException
Export the PrintMap service final response to a PrintMapResponseDocument.

Specified by:
createFinalResponse in interface RequestManager
Parameters:
message -
exception -
Returns:
PrintMapResponseDocument
Throws:
OGCWebServiceException

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