public class SoapHelper extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
private |
SoapHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
checkActionURIWithBodyContent(String soapAction,
String operationName) |
static String |
checkSoapHeader(javax.servlet.http.HttpServletRequest request)
Checks the HTTP-Header for action or SOAPAction elements.
|
static String |
getContentFromElement(SOAPHeader soapHeader,
String namespaceURI,
String localName)
Get text content from element by namespace.
|
static String |
getSoapFaultReasonText(ExceptionCode exceptionCode)
Get the reason for a SOAP fault from Exception code
|
static SOAPMessage |
getSoapMessageForProtocol(String soapVersion)
Creates a SOAP message for SOAP 1.2 or 1.1
|
static SOAPMessage |
getSoapMessageForProtocol(String soapVersion,
InputStream inputStream) |
static byte[] |
headerToXML(Map<String,SoapHeader> soapHeader) |
public static String checkSoapHeader(javax.servlet.http.HttpServletRequest request)
request
- HTTP requestpublic static String getContentFromElement(SOAPHeader soapHeader, String namespaceURI, String localName)
soapHeader
- SOAPHeader elementnamespaceURI
- Namespace URIlocalName
- local namepublic static SOAPMessage getSoapMessageForProtocol(String soapVersion) throws SOAPException
soapVersion
- SOAP versionSOAPException
- if an error occurs.public static SOAPMessage getSoapMessageForProtocol(String soapVersion, InputStream inputStream) throws SOAPException, IOException
SOAPException
IOException
public static String getSoapFaultReasonText(ExceptionCode exceptionCode)
exceptionCode
- OWS exception code to get reason for.public static String checkActionURIWithBodyContent(String soapAction, String operationName) throws OwsExceptionReport
OwsExceptionReport
public static byte[] headerToXML(Map<String,SoapHeader> soapHeader)
Copyright © 2012-2015 52north.org. All Rights Reserved.