Package org.n52.iceland.binding
Class AbstractXmlBinding<T>
- java.lang.Object
-
- org.n52.iceland.binding.SimpleBinding
-
- org.n52.iceland.binding.AbstractXmlBinding<T>
-
- Type Parameters:
T- the decoded request type
- All Implemented Interfaces:
Binding,EncodingExceptionHandler,Component<BindingKey>,Keyed<BindingKey>
- Direct Known Subclasses:
PoxBinding,SoapBinding
public abstract class AbstractXmlBinding<T> extends SimpleBinding
Abstract binding class for XML encoded requests- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Tdecode(javax.servlet.http.HttpServletRequest request)protected DecoderKeygetDecoderKey(String xmlContent, String characterEncoding)protected OwsOperationKeygetOperationKey(Element element)voidsetDocumentFactory(DocumentBuilderProvider documentFactory)protected StringxmlToString(javax.servlet.http.HttpServletRequest request, String characterEncoding)-
Methods inherited from class org.n52.iceland.binding.SimpleBinding
checkServiceOperatorKeyTypes, chooseResponseContentType, chooseResponseContentTypeForExceptionReport, encodeOwsExceptionReport, encodeResponse, getDecoder, getDecoderRepository, getDefaultContentType, getEncoder, getEncoderRepository, getEventBus, getHttpUtils, getRequestContext, getServiceOperator, getServiceOperator, getServiceOperatorRepository, handleEncodingException, hasDecoder, hasDecoder, hasEncoder, hasEncoder, hasEncoder, isServiceSupported, isUseHttpResponseCodes, isVersionSupported, setDecoderRepository, setEncoderRepository, setEventBus, setHttpUtils, 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, checkOperationHttpPostSupported, checkOperationHttpPutSupported, doDeleteOperation, doGetOperation, doOptionsOperation, doPostOperation, doPutOperation
-
-
-
-
Method Detail
-
setDocumentFactory
@Inject public void setDocumentFactory(DocumentBuilderProvider documentFactory)
-
decode
protected T decode(javax.servlet.http.HttpServletRequest request) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
getDecoderKey
protected DecoderKey getDecoderKey(String xmlContent, String characterEncoding) throws CodedException
- Throws:
CodedException
-
getOperationKey
protected OwsOperationKey getOperationKey(Element element)
-
xmlToString
protected String xmlToString(javax.servlet.http.HttpServletRequest request, String characterEncoding) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
-