|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.server.csw.provider.components.RequestHandler
public class RequestHandler
Request handler.
Constructor Summary | |
---|---|
RequestHandler()
Default constructor |
Method Summary | |
---|---|
protected void |
generateSoapResponse(OperationContext context,
String nsSoapUri,
String nsSoapPfx,
Exception exception)
Wraps the response within a SOAp envelope. |
OperationContext |
getOperationContext()
Gets the operation context. |
boolean |
getWasSoap()
Gets the flag indicating a SOAP based request. |
OperationResponse |
handleGet(HttpServletRequest request)
Handles a URL based request (HTTP GET). |
OperationResponse |
handleXML(String xml)
Handles an XML based request (normally HTTP POST). |
protected Document |
loadDom(String xml)
Loads an XML string into an XML Document. |
void |
parseServiceAndVersion(OperationContext context,
HttpServletRequest request)
Parses the service name and version for a URL based request (HTTP GET). |
void |
parseServiceAndVersion(OperationContext context,
Node root,
XPath xpath)
Parses the service name and version an XML based request (normally HTTP POST). |
void |
setOperationContext(OperationContext context)
Sets the operation context. |
void |
setWasSoap(boolean wasSoap)
Sets the flag indicating a SOAP based request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestHandler()
Method Detail |
---|
public OperationContext getOperationContext()
public void setOperationContext(OperationContext context)
context
- the operation contextpublic boolean getWasSoap()
true
is this was a SOAP based requestpublic void setWasSoap(boolean wasSoap)
wasSoap
- true
is this was a SOAP based requestpublic OperationResponse handleGet(HttpServletRequest request) throws Exception
request
- the HTTP request
Exception
- if a processing exception occurspublic OperationResponse handleXML(String xml) throws Exception
xml
- the XML
Exception
- if a processing exception occursprotected void generateSoapResponse(OperationContext context, String nsSoapUri, String nsSoapPfx, Exception exception) throws Exception
context
- the operation contextnsSoapUri
- the SOAP namespace URInsSoapPfx
- the SOAP namespace prefixexception
- an exception condition that should be wrapped as an OWS exception report
Exception
- Exception if a processing exception occursprotected Document loadDom(String xml) throws OwsException
xml
- the document XML string
OwsException
- if the document fails to loadpublic void parseServiceAndVersion(OperationContext context, HttpServletRequest request) throws OwsException
context
- the operation contextrequest
- the HTTP request
OwsException
- if validation fails
XPathExpressionException
- if an XPath related exception occurspublic void parseServiceAndVersion(OperationContext context, Node root, XPath xpath) throws OwsException, XPathExpressionException
context
- the operation contextroot
- the root nodexpath
- an XPath to enable queries (properly configured with name spaces)
OwsException
- if validation fails
XPathExpressionException
- if an XPath related exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |