Class KvpBinding

java.lang.Object
org.n52.iceland.binding.SimpleBinding
org.n52.iceland.binding.kvp.KvpBinding
All Implemented Interfaces:
Binding, EncodingExceptionHandler, Component<BindingKey>, Keyed<BindingKey>

@Configurable public class KvpBinding extends SimpleBinding
OWS binding for Key-Value-Pair (HTTP-Get) requests
Since:
1.0.0
  • Constructor Details

    • KvpBinding

      public KvpBinding()
  • Method Details

    • setUseHttpResponseCodes

      @Setting("misc.httpResponseCodeUseInKvpAndPoxBinding") public void setUseHttpResponseCodes(boolean useHttpResponseCodes)
    • isUseHttpResponseCodes

      protected boolean isUseHttpResponseCodes()
      Specified by:
      isUseHttpResponseCodes in class SimpleBinding
    • setIncludeOriginalRequest

      @Setting("misc.includeOriginalRequest") public void setIncludeOriginalRequest(boolean includeOriginalRequest)
    • getKeys

      public Set<BindingKey> getKeys()
    • getDefaultContentType

      protected MediaType getDefaultContentType()
      Specified by:
      getDefaultContentType in class SimpleBinding
    • doGetOperation

      public void doGetOperation(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws HTTPException, IOException
      Description copied from interface: Binding
      HTTP GET request handling method.
      Parameters:
      req - HTTP GET request
      res - HTTP GET response
      Throws:
      HTTPException - if the encoding of an exception failed
      IOException - if an IO error occurs
    • checkOperationHttpGetSupported

      public boolean checkOperationHttpGetSupported(OwsOperationKey k)
      Description copied from interface: Binding
      Check, if the operation is supported by the decoder by the HTTP-Get method.
      Parameters:
      k - identifier of the decoder
      Returns:
      true, if the decoder decoderKey supports HTTP-Get for operation operationName
    • parseRequest

      protected OwsServiceRequest parseRequest(jakarta.servlet.http.HttpServletRequest req) throws OwsExceptionReport
      Throws:
      OwsExceptionReport