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

org.deegree.ogcwebservices.csw.iso_profile.ebrim
Class CSWSOAPHandler

java.lang.Object
  extended by org.deegree.ogcwebservices.csw.iso_profile.ebrim.CSWSOAPHandler

public class CSWSOAPHandler
extends Object

The CSWSOAPFilter class parses an incoming soap - (post)request which (if the root element is bound to the soap name space "http://www.w3.org/2003/05/soap-envelope") will copy the csw:Operation inside the envelope. Sets the user name and passwords inside the root element of the csw:reqquest and sends it to the chain.

Version:
$Revision: 1.4 $, $Date: 2007-06-21 13:53:49 $
Author:
Rutger Bezema, last edited by: $Author: bezema $

Constructor Summary
CSWSOAPHandler()
          Create an empty CSWSoapHandler with username set to anonymous and password to "".
CSWSOAPHandler(XMLFragment incomingRequest)
          Simple constructor buffering the request.
 
Method Summary
 XMLFragment createCSWRequestFromSOAP()
          Finds a user and a password from a given soap request, and inserts them as attributes into the rootelement of the csw:request inside the body of the soap.
 String getPassword()
           
 String getUserName()
           
 boolean isSOAPRequest()
           
 void setIncomingRequest(XMLFragment doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSWSOAPHandler

public CSWSOAPHandler()
Create an empty CSWSoapHandler with username set to anonymous and password to "". No xml-data is set.


CSWSOAPHandler

public CSWSOAPHandler(XMLFragment incomingRequest)
Simple constructor buffering the request.

Parameters:
incomingRequest -
Method Detail

isSOAPRequest

public boolean isSOAPRequest()
Returns:
true if the namespace of the root element is 'http://www.w3.org/2003/05/soap-envelope' false otherwise.

createCSWRequestFromSOAP

public XMLFragment createCSWRequestFromSOAP()
                                     throws OGCWebServiceException
Finds a user and a password from a given soap request, and inserts them as attributes into the rootelement of the csw:request inside the body of the soap. This request is returned.

Returns:
the XMLTree inside the soap:body or null if the element has no localname of Envelope, or the data (aka as doc) was not set.
Throws:
OGCWebServiceException - if some required elements are not set.

getPassword

public String getPassword()
Returns:
the password.

getUserName

public String getUserName()
Returns:
the userName.

setIncomingRequest

public void setIncomingRequest(XMLFragment doc)
Parameters:
doc - sets the incomingRequest to doc.

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