Class StreamingServiceResponseWriter

  • All Implemented Interfaces:
    org.n52.iceland.coding.encode.ResponseWriter<org.n52.shetland.ogc.ows.service.OwsServiceResponse>, org.n52.janmayen.component.Component<org.n52.iceland.coding.encode.ResponseWriterKey>, org.n52.janmayen.component.Keyed<org.n52.iceland.coding.encode.ResponseWriterKey>

    public class StreamingServiceResponseWriter
    extends java.lang.Object
    implements org.n52.iceland.coding.encode.ResponseWriter<org.n52.shetland.ogc.ows.service.OwsServiceResponse>
    TODO JavaDoc
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.n52.iceland.coding.encode.ResponseWriterKey KEY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.n52.janmayen.http.MediaType getContentType()  
      java.util.Set<org.n52.iceland.coding.encode.ResponseWriterKey> getKeys()  
      void setContentType​(org.n52.janmayen.http.MediaType contentType)  
      boolean supportsGZip​(org.n52.shetland.ogc.ows.service.OwsServiceResponse t)  
      void write​(org.n52.shetland.ogc.ows.service.OwsServiceResponse t, java.io.OutputStream out, org.n52.iceland.coding.encode.ResponseProxy responseProxy)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.n52.iceland.coding.encode.ResponseWriter

        getEncodedContentType, getForcedHttpStatus, hasForcedHttpStatus, isSetContentType
    • Field Detail

      • KEY

        public static final org.n52.iceland.coding.encode.ResponseWriterKey KEY
    • Constructor Detail

      • StreamingServiceResponseWriter

        public StreamingServiceResponseWriter​(StreamWriterRepository streamWriterRepository)
    • Method Detail

      • getContentType

        public org.n52.janmayen.http.MediaType getContentType()
        Specified by:
        getContentType in interface org.n52.iceland.coding.encode.ResponseWriter<org.n52.shetland.ogc.ows.service.OwsServiceResponse>
      • setContentType

        public void setContentType​(org.n52.janmayen.http.MediaType contentType)
        Specified by:
        setContentType in interface org.n52.iceland.coding.encode.ResponseWriter<org.n52.shetland.ogc.ows.service.OwsServiceResponse>
      • write

        public void write​(org.n52.shetland.ogc.ows.service.OwsServiceResponse t,
                          java.io.OutputStream out,
                          org.n52.iceland.coding.encode.ResponseProxy responseProxy)
                   throws java.io.IOException,
                          org.n52.svalbard.encode.exception.EncodingException
        Specified by:
        write in interface org.n52.iceland.coding.encode.ResponseWriter<org.n52.shetland.ogc.ows.service.OwsServiceResponse>
        Throws:
        java.io.IOException
        org.n52.svalbard.encode.exception.EncodingException
      • supportsGZip

        public boolean supportsGZip​(org.n52.shetland.ogc.ows.service.OwsServiceResponse t)
        Specified by:
        supportsGZip in interface org.n52.iceland.coding.encode.ResponseWriter<org.n52.shetland.ogc.ows.service.OwsServiceResponse>
      • getKeys

        public java.util.Set<org.n52.iceland.coding.encode.ResponseWriterKey> getKeys()
        Specified by:
        getKeys in interface org.n52.janmayen.component.Keyed<org.n52.iceland.coding.encode.ResponseWriterKey>