Class XmlResponseWriter

java.lang.Object
org.n52.iceland.coding.encode.AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
org.n52.iceland.response.XmlResponseWriter
All Implemented Interfaces:
ResponseWriter<org.apache.xmlbeans.XmlObject>, Component<ResponseWriterKey>, Keyed<ResponseWriterKey>

public class XmlResponseWriter extends AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
TODO JavaDoc
Since:
2.0.0
  • Field Details

  • Constructor Details

    • XmlResponseWriter

      public XmlResponseWriter(EncoderRepository encoderRepository, Producer<org.apache.xmlbeans.XmlOptions> xmlOptions)
  • Method Details

    • getKeys

      public Set<ResponseWriterKey> getKeys()
    • write

      public void write(org.apache.xmlbeans.XmlObject xml, OutputStream out, ResponseProxy responseProxy) throws IOException
      Description copied from interface: ResponseWriter
      Write object t to OutputStream out
      Parameters:
      xml - Object to write
      out - OutputStream to be written to
      responseProxy - ResponseProxy giving access to header and content length setters
      Throws:
      IOException - If an error occurs during writing
    • write

      public void write(org.apache.xmlbeans.XmlObject xml, OutputStream out) throws IOException
      Description copied from interface: ResponseWriter
      Write object t to OutputStream out
      Parameters:
      xml - Object to write
      out - OutputStream to be written to
      Throws:
      IOException - If an error occurs during writing
    • supportsGZip

      public boolean supportsGZip(org.apache.xmlbeans.XmlObject t)
      Description copied from interface: ResponseWriter
      Check if GZip is supported by this writer
      Parameters:
      t - Object to write
      Returns:
      true, if GZip is supported