Class ResponseProxy

java.lang.Object
org.n52.iceland.coding.encode.ResponseProxy

public class ResponseProxy extends Object
Proxy class for HttpServletResponse to give ResponseWriters access to selected methods, including addHeader and setContentLength.
Since:
1.0.0
  • Constructor Details

    • ResponseProxy

      public ResponseProxy(jakarta.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException
  • Method Details

    • addHeader

      public void addHeader(String headerIdentifier, String headerValue)
    • setContentLength

      public void setContentLength(int contentLength)