Package org.n52.iceland.binding.soap
Class SoapBinding
- java.lang.Object
-
- org.n52.iceland.binding.SimpleBinding
-
- org.n52.iceland.binding.AbstractXmlBinding<SoapRequest>
-
- org.n52.iceland.binding.soap.SoapBinding
-
- All Implemented Interfaces:
Binding,EncodingExceptionHandler,Component<BindingKey>,Keyed<BindingKey>
public class SoapBinding extends AbstractXmlBinding<SoapRequest>
Bindingimplementation for SOAP encoded requests- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description SoapBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckOperationHttpPostSupported(OwsOperationKey k)Check, if the operation is supported by the decoder by the HTTP-Post method.protected StringcheckSoapHeader(javax.servlet.http.HttpServletRequest request)voiddoPostOperation(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)HTTP POST request handling method.protected MediaTypegetDefaultContentType()HttpUtilsgetHttpUtils()Set<BindingKey>getKeys()protected booleanisUseHttpResponseCodes()voidsetHttpUtils(HttpUtils httpUtils)-
Methods inherited from class org.n52.iceland.binding.AbstractXmlBinding
decode, getDecoderKey, getOperationKey, setDocumentFactory, xmlToString
-
Methods inherited from class org.n52.iceland.binding.SimpleBinding
checkServiceOperatorKeyTypes, chooseResponseContentType, chooseResponseContentTypeForExceptionReport, encodeOwsExceptionReport, encodeResponse, getDecoder, getDecoderRepository, getEncoder, getEncoderRepository, getEventBus, getRequestContext, getServiceOperator, getServiceOperator, getServiceOperatorRepository, handleEncodingException, hasDecoder, hasDecoder, hasEncoder, hasEncoder, hasEncoder, isServiceSupported, isVersionSupported, setDecoderRepository, setEncoderRepository, setEventBus, setServiceOperatorRepository, writeOwsExceptionReport, writeResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.n52.iceland.binding.Binding
checkOperationHttpDeleteSupported, checkOperationHttpGetSupported, checkOperationHttpOptionsSupported, checkOperationHttpPutSupported, doDeleteOperation, doGetOperation, doOptionsOperation, doPutOperation
-
-
-
-
Method Detail
-
getKeys
public Set<BindingKey> getKeys()
-
checkOperationHttpPostSupported
public boolean checkOperationHttpPostSupported(OwsOperationKey k)
Description copied from interface:BindingCheck, if the operation is supported by the decoder by the HTTP-Post method.- Parameters:
k- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Post for operationoperationName
-
isUseHttpResponseCodes
protected boolean isUseHttpResponseCodes()
- Specified by:
isUseHttpResponseCodesin classSimpleBinding
-
getDefaultContentType
protected MediaType getDefaultContentType()
- Specified by:
getDefaultContentTypein classSimpleBinding
-
doPostOperation
public void doPostOperation(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws HTTPException, IOExceptionDescription copied from interface:BindingHTTP POST request handling method.- Parameters:
httpRequest- HTTP POST requesthttpResponse- HTTP POST response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
checkSoapHeader
protected String checkSoapHeader(javax.servlet.http.HttpServletRequest request)
-
getHttpUtils
public HttpUtils getHttpUtils()
- Overrides:
getHttpUtilsin classSimpleBinding
-
setHttpUtils
@Inject public void setHttpUtils(HttpUtils httpUtils)
- Overrides:
setHttpUtilsin classSimpleBinding
-
-