Package org.n52.iceland.binding
Interface Binding
-
- All Superinterfaces:
Component<BindingKey>,EncodingExceptionHandler,Keyed<BindingKey>
- All Known Implementing Classes:
AbstractXmlBinding,EXIBinding,JSONBinding,KvpBinding,PoxBinding,SimpleBinding,SoapBinding
public interface Binding extends Component<BindingKey>, EncodingExceptionHandler
Abstract Super class for binding implementations. Context: TheBinding.check*()methods are called during GetCapabilities processing when collecting the operations metadata.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleancheckOperationHttpDeleteSupported(OwsOperationKey operation)Check, if the operation is supported by the decoder by the HTTP-Delete method.default booleancheckOperationHttpGetSupported(OwsOperationKey operation)Check, if the operation is supported by the decoder by the HTTP-Get method.default booleancheckOperationHttpOptionsSupported(OwsOperationKey operation)Check, if the operation is supported by the decoder by the HTTP-Options method.default booleancheckOperationHttpPostSupported(OwsOperationKey operation)Check, if the operation is supported by the decoder by the HTTP-Post method.default booleancheckOperationHttpPutSupported(OwsOperationKey operation)Check, if the operation is supported by the decoder by the HTTP-Put method.default voiddoDeleteOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)HTTP DELETE request handling method.default voiddoGetOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)HTTP GET request handling method.default voiddoOptionsOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)HTTP DELETE request handling method.default voiddoPostOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)HTTP POST request handling method.default voiddoPutOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)HTTP PUT request handling method.-
Methods inherited from interface org.n52.iceland.binding.EncodingExceptionHandler
handleEncodingException
-
-
-
-
Method Detail
-
doDeleteOperation
default void doDeleteOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HTTPException, IOExceptionHTTP DELETE request handling method.- Parameters:
request- HTTP DELETE requestresponse- HTTP DELETE response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
doGetOperation
default void doGetOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HTTPException, IOExceptionHTTP GET request handling method.- Parameters:
request- HTTP GET requestresponse- HTTP GET response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
doOptionsOperation
default void doOptionsOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HTTPException, IOExceptionHTTP DELETE request handling method.- Parameters:
request- HTTP DELETE requestresponse- HTTP DELETE response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
doPostOperation
default void doPostOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HTTPException, IOExceptionHTTP POST request handling method.- Parameters:
request- HTTP POST requestresponse- HTTP POST response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
doPutOperation
default void doPutOperation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HTTPException, IOExceptionHTTP PUT request handling method.- Parameters:
request- HTTP PUT requestresponse- HTTP PUT response- Throws:
HTTPException- if the encoding of an exception failedIOException- if an IO error occurs
-
checkOperationHttpDeleteSupported
default boolean checkOperationHttpDeleteSupported(OwsOperationKey operation) throws HTTPException
Check, if the operation is supported by the decoder by the HTTP-Delete method.- Parameters:
operation- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Delete for operationoperationName - Throws:
HTTPException- if an error occurs
-
checkOperationHttpGetSupported
default boolean checkOperationHttpGetSupported(OwsOperationKey operation) throws HTTPException
Check, if the operation is supported by the decoder by the HTTP-Get method.- Parameters:
operation- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Get for operationoperationName - Throws:
HTTPException- if an error occurs
-
checkOperationHttpPostSupported
default boolean checkOperationHttpPostSupported(OwsOperationKey operation) throws HTTPException
Check, if the operation is supported by the decoder by the HTTP-Post method.- Parameters:
operation- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Post for operationoperationName - Throws:
HTTPException- if an error occurs
-
checkOperationHttpOptionsSupported
default boolean checkOperationHttpOptionsSupported(OwsOperationKey operation) throws HTTPException
Check, if the operation is supported by the decoder by the HTTP-Options method.- Parameters:
operation- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Post for operationoperationName - Throws:
HTTPException- if an error occurs
-
checkOperationHttpPutSupported
default boolean checkOperationHttpPutSupported(OwsOperationKey operation) throws HTTPException
Check, if the operation is supported by the decoder by the HTTP-Put method.- Parameters:
operation- identifier of the decoder- Returns:
- true, if the decoder
decoderKeysupports HTTP-Put for operationoperationName - Throws:
HTTPException- if an error occurs
-
-