Class PoxBinding

All Implemented Interfaces:
Binding, EncodingExceptionHandler, Component<BindingKey>, Keyed<BindingKey>

@Configurable public class PoxBinding extends AbstractXmlBinding<OwsServiceRequest>
Binding implementation for POX (XML) encoded requests
Since:
1.0.0
  • Constructor Details

    • PoxBinding

      public PoxBinding()
  • Method Details

    • setUseHttpResponseCodes

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

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

      public Set<BindingKey> getKeys()
    • 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
      Throws:
      OwsExceptionReport
    • checkOperationHttpPostSupported

      public boolean checkOperationHttpPostSupported(OwsOperationKey k)
      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
    • getDefaultContentType

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