|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.enterprise.servlet.SOAP_1_1_FacadeServletFilter
public class SOAP_1_1_FacadeServletFilter
The SOAP_1_1_FacadeServletFilter
class is able to handle an incoming SOAP requests.
It is also able to handle multipart messages, by using the RequestMultiPartHandler
.
Following filter-parameters are supported:
Constructor Summary | |
---|---|
SOAP_1_1_FacadeServletFilter()
|
Method Summary | |
---|---|
protected void |
checkMustUnderstandAttributes(Element headerElement)
Check all direct children of the given headerElement for the mustUndertand attribute. |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
protected XMLFragment |
handleSOAPRequest(XMLFragment xmlReq)
Handles a SOAP 1.1. envelope request. |
void |
init(javax.servlet.FilterConfig config)
|
protected void |
sendException(javax.servlet.ServletResponse response,
OGCWebServiceException e,
boolean usingSoap)
Sends the passed OGCWebServiceException to the calling client and flushes/closes the writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SOAP_1_1_FacadeServletFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
protected XMLFragment handleSOAPRequest(XMLFragment xmlReq) throws XMLParsingException, OGCWebServiceException, IllegalArgumentException
xmlReq
- the xml-dom representation of the original request, it should be a soap-envelope bound to the
namespace: http://schemas.xmlsoap.org/soap/envelope/
null
XMLParsingException
- if the body could not be parsed
OGCWebServiceException
- if one of the header elements was not configured to be understood.
IllegalArgumentException
- if the xmlReq is null
protected void checkMustUnderstandAttributes(Element headerElement) throws OGCWebServiceException, XMLParsingException
headerElement
- which top-level child-nodes will be checked for mustUnderstand attributes. If null
nothing will be done.
OGCWebServiceException
- if one of the found children was not configured to be understood.
XMLParsingException
- if an error occurs while retrieving the child elements of the headerelementpublic void destroy()
destroy
in interface javax.servlet.Filter
protected void sendException(javax.servlet.ServletResponse response, OGCWebServiceException e, boolean usingSoap) throws IOException
response
- to write the exception message to.e
- the exception to 'send' e.g. write to the stream.usingSoap
- true if the exception should be wrapped inside a soap body.
IOException
- if an error occurred while getting the writer of the response.
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org