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: The Binding.check*() methods are called during GetCapabilities processing when collecting the operations metadata.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Check, if the operation is supported by the decoder by the HTTP-Delete method.
    default boolean
    Check, if the operation is supported by the decoder by the HTTP-Get method.
    default boolean
    Check, if the operation is supported by the decoder by the HTTP-Options method.
    default boolean
    Check, if the operation is supported by the decoder by the HTTP-Post method.
    default boolean
    Check, if the operation is supported by the decoder by the HTTP-Put method.
    default void
    doDeleteOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    HTTP DELETE request handling method.
    default void
    doGetOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    HTTP GET request handling method.
    default void
    doOptionsOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    HTTP DELETE request handling method.
    default void
    doPostOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    HTTP POST request handling method.
    default void
    doPutOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    HTTP PUT request handling method.

    Methods inherited from interface org.n52.iceland.binding.EncodingExceptionHandler

    handleEncodingException

    Methods inherited from interface org.n52.janmayen.component.Keyed

    getKeys
  • Method Details

    • doDeleteOperation

      default void doDeleteOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws HTTPException, IOException
      HTTP DELETE request handling method.
      Parameters:
      request - HTTP DELETE request
      response - HTTP DELETE response
      Throws:
      HTTPException - if the encoding of an exception failed
      IOException - if an IO error occurs
    • doGetOperation

      default void doGetOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws HTTPException, IOException
      HTTP GET request handling method.
      Parameters:
      request - HTTP GET request
      response - HTTP GET response
      Throws:
      HTTPException - if the encoding of an exception failed
      IOException - if an IO error occurs
    • doOptionsOperation

      default void doOptionsOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws HTTPException, IOException
      HTTP DELETE request handling method.
      Parameters:
      request - HTTP DELETE request
      response - HTTP DELETE response
      Throws:
      HTTPException - if the encoding of an exception failed
      IOException - if an IO error occurs
    • doPostOperation

      default void doPostOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws HTTPException, IOException
      HTTP POST request handling method.
      Parameters:
      request - HTTP POST request
      response - HTTP POST response
      Throws:
      HTTPException - if the encoding of an exception failed
      IOException - if an IO error occurs
    • doPutOperation

      default void doPutOperation(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws HTTPException, IOException
      HTTP PUT request handling method.
      Parameters:
      request - HTTP PUT request
      response - HTTP PUT response
      Throws:
      HTTPException - if the encoding of an exception failed
      IOException - 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 decoderKey supports HTTP-Delete for operation operationName
      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 decoderKey supports HTTP-Get for operation operationName
      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 decoderKey supports HTTP-Post for operation operationName
      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 decoderKey supports HTTP-Post for operation operationName
      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 decoderKey supports HTTP-Put for operation operationName
      Throws:
      HTTPException - if an error occurs