Class JSONBinding

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

public class JSONBinding extends SimpleBinding
Binding implementation for JSON encoded requests
Since:
1.0.0
  • Constructor Details

    • JSONBinding

      public JSONBinding()
  • Method Details

    • getKeys

      public Set<BindingKey> getKeys()
    • isUseHttpResponseCodes

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

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

      public boolean checkOperationHttpPostSupported(OwsOperationKey k) throws HTTPException
      Description copied from interface: Binding
      Check, if the operation is supported by the decoder by the HTTP-Post method.
      Parameters:
      k - identifier of the decoder
      Returns:
      true, if the decoder decoderKey supports HTTP-Post for operation operationName
      Throws:
      HTTPException - if an error occurs
    • doPostOperation

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