Class EXIBinding

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

public class EXIBinding extends SimpleBinding
Binding implementation for EXI - Efficient XML Interchange See See http://www.w3.org/TR/exi/
Since:
2.0.0
  • Constructor Details

    • EXIBinding

      @Inject public EXIBinding(EXIUtils exiUtils)
  • Method Details

    • getDefaultContentType

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

      protected boolean isUseHttpResponseCodes()
      Specified by:
      isUseHttpResponseCodes 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
    • parseRequest

      protected OwsServiceRequest parseRequest(jakarta.servlet.http.HttpServletRequest request) throws OwsExceptionReport
      Parse and decode the incoming EXI encoded InputStream
      Parameters:
      request - HttpServletRequest with EXI encoded InputStream
      Returns:
      OwsServiceRequest from EXI encoded InputStream
      Throws:
      OwsExceptionReport - If an error occurs during parsing
    • decode

      protected org.apache.xmlbeans.XmlObject decode(jakarta.servlet.http.HttpServletRequest request) throws OwsExceptionReport
      Parse the incoming EXI encoded InputStream transform to XmlObject
      Parameters:
      request - HttpServletRequest with EXI encoded InputStream
      Returns:
      XmlObject created from the EXI encoded InputStream
      Throws:
      OwsExceptionReport - If an error occurs during parsing
    • getKeys

      public Set<BindingKey> getKeys()