Package org.n52.iceland.binding.pox
Class PoxBinding
java.lang.Object
org.n52.iceland.binding.SimpleBinding
org.n52.iceland.binding.AbstractXmlBinding<OwsServiceRequest>
org.n52.iceland.binding.pox.PoxBinding
- All Implemented Interfaces:
Binding,EncodingExceptionHandler,Component<BindingKey>,Keyed<BindingKey>
Binding implementation for POX (XML) encoded requests- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck, if the operation is supported by the decoder by the HTTP-Post method.voiddoPostOperation(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) HTTP POST request handling method.protected MediaTypegetKeys()protected booleanprotected OwsServiceRequestparseRequest(jakarta.servlet.http.HttpServletRequest request) voidsetUseHttpResponseCodes(boolean useHttpResponseCodes) Methods inherited from class org.n52.iceland.binding.AbstractXmlBinding
decode, getDecoderKey, getOperationKey, setDocumentFactory, xmlToStringMethods inherited from class org.n52.iceland.binding.SimpleBinding
checkServiceOperatorKeyTypes, chooseResponseContentType, chooseResponseContentTypeForExceptionReport, encodeOwsExceptionReport, encodeResponse, getDecoder, getDecoderRepository, getEncoder, getEncoderRepository, getEventBus, getHttpUtils, getRequestContext, getServiceOperator, getServiceOperator, getServiceOperatorRepository, handleEncodingException, hasDecoder, hasDecoder, hasEncoder, hasEncoder, hasEncoder, isServiceSupported, isVersionSupported, setDecoderRepository, setEncoderRepository, setEventBus, setHttpUtils, setServiceOperatorRepository, writeOwsExceptionReport, writeResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.n52.iceland.binding.Binding
checkOperationHttpDeleteSupported, checkOperationHttpGetSupported, checkOperationHttpOptionsSupported, checkOperationHttpPutSupported, doDeleteOperation, doGetOperation, doOptionsOperation, doPutOperation
-
Constructor Details
-
PoxBinding
public PoxBinding()
-
-
Method Details
-
setUseHttpResponseCodes
@Setting("misc.httpResponseCodeUseInKvpAndPoxBinding") public void setUseHttpResponseCodes(boolean useHttpResponseCodes) -
isUseHttpResponseCodes
protected boolean isUseHttpResponseCodes()- Specified by:
isUseHttpResponseCodesin classSimpleBinding
-
getKeys
-
doPostOperation
public void doPostOperation(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws HTTPException, IOException Description copied from interface:BindingHTTP POST request handling method.- Parameters:
req- HTTP POST requestres- HTTP POST response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
parseRequest
protected OwsServiceRequest parseRequest(jakarta.servlet.http.HttpServletRequest request) throws OwsExceptionReport - Throws:
OwsExceptionReport
-
checkOperationHttpPostSupported
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
-
getDefaultContentType
- Specified by:
getDefaultContentTypein classSimpleBinding
-