Class ServletLayout

java.lang.Object
org.qubership.profiler.output.layout.Layout
org.qubership.profiler.servlet.layout.ServletLayout
All Implemented Interfaces:
Closeable, AutoCloseable

public class ServletLayout extends org.qubership.profiler.output.layout.Layout
  • Field Details

    • resp

      protected javax.servlet.http.HttpServletResponse resp
    • out

      protected javax.servlet.ServletOutputStream out
  • Constructor Details

    • ServletLayout

      public ServletLayout(javax.servlet.http.HttpServletResponse resp)
    • ServletLayout

      public ServletLayout(javax.servlet.http.HttpServletResponse resp, String encoding, String contentType)
  • Method Details

    • getEncoding

      public String getEncoding()
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in class org.qubership.profiler.output.layout.Layout
      Throws:
      IOException
    • putNextEntry

      public void putNextEntry(String id, String name, String type)
      Specified by:
      putNextEntry in class org.qubership.profiler.output.layout.Layout
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.qubership.profiler.output.layout.Layout
      Throws:
      IOException