test_class.declarator: requestWrapper
test_class.modifier: private
test_class.original_string: private HttpRequestWrapper requestWrapper;
test_class.type: HttpRequestWrapper
test_class.var_name: requestWrapper
test_class.declarator: response
test_class.modifier: private
test_class.original_string: private HttpServletResponse response;
test_class.type: HttpServletResponse
test_class.var_name: response
test_class.declarator: responseWrapper
test_class.modifier: private
test_class.original_string: private HttpResponseWrapper responseWrapper;
test_class.type: HttpResponseWrapper
test_class.var_name: responseWrapper
test_class.declarator: outputStream
test_class.modifier: private
test_class.original_string: private ByteArrayOutputStream outputStream;
test_class.type: ByteArrayOutputStream
test_class.var_name: outputStream
test_class.declarator: outputWriter
test_class.modifier: private
test_class.original_string: private StringWriter outputWriter;
test_class.type: StringWriter
test_class.var_name: outputWriter
test_class.declarator: configuration
test_class.modifier: private
test_class.original_string: private SessionConfiguration configuration;
test_class.type: SessionConfiguration
test_class.var_name: configuration
test_class.declarator: manager
test_class.modifier: private
test_class.original_string: private SessionManager manager;
test_class.type: SessionManager
test_class.var_name: manager
test_class.file: session-replacement/src/test/java/com/amadeus/session/servlet/TestHttpResponseWrapper.java
test_class.identifier: TestHttpResponseWrapper
test_case.body: @Test
    public void testTwiceWriter() throws IOException {
      PrintWriter writer1 = responseWrapper.getWriter();
      PrintWriter writer2 = responseWrapper.getWriter();
      assertSame(writer1, writer2);
    }
test_case.class_method_signature: TestHttpResponseWrapper.testTwiceWriter()
test_case.full_signature: @Test public void testTwiceWriter()
test_case.identifier: testTwiceWriter
test_case.invocations: getWriter getWriter assertSame
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTwiceWriter()
focal_class.declarator: LN_LENGTH = System.getProperty("line.separator").length()
focal_class.modifier: private static final
focal_class.original_string: private static final int LN_LENGTH = System.getProperty("line.separator").length();
focal_class.type: int
focal_class.var_name: LN_LENGTH
focal_class.declarator: CRLF = new byte[] { '\r', '\n' }
focal_class.modifier: private static final
focal_class.original_string: private static final byte[] CRLF = new byte[] { '\r', '\n' };
focal_class.type: byte[]
focal_class.var_name: CRLF
focal_class.declarator: request
focal_class.modifier: private final
focal_class.original_string: private final HttpRequestWrapper request;
focal_class.type: HttpRequestWrapper
focal_class.var_name: request
focal_class.declarator: writer
focal_class.modifier: private
focal_class.original_string: private PrintWriter writer;
focal_class.type: PrintWriter
focal_class.var_name: writer
focal_class.declarator: contentWritten
focal_class.modifier: private
focal_class.original_string: private long contentWritten;
focal_class.type: long
focal_class.var_name: contentWritten
focal_class.declarator: contentLength
focal_class.modifier: protected
focal_class.original_string: protected long contentLength;
focal_class.type: long
focal_class.var_name: contentLength
focal_class.declarator: outputStream
focal_class.modifier: private
focal_class.original_string: private SaveSessionServletOutputStream outputStream;
focal_class.type: SaveSessionServletOutputStream
focal_class.var_name: outputStream
focal_class.declarator: delegatePrintWriter
focal_class.modifier: private final
focal_class.original_string: private final boolean delegatePrintWriter;
focal_class.type: boolean
focal_class.var_name: delegatePrintWriter
focal_class.file: session-replacement/src/main/java/com/amadeus/session/servlet/HttpResponseWrapper.java
focal_class.identifier: HttpResponseWrapper
focal_class.interfaces: implements ResponseWithSessionId
focal_class.class_method_signature: HttpResponseWrapper.HttpResponseWrapper(HttpRequestWrapper request, HttpServletResponse response)
focal_class.full_signature:   HttpResponseWrapper(HttpRequestWrapper request, HttpServletResponse response)
focal_class.identifier: HttpResponseWrapper
focal_class.parameters: (HttpRequestWrapper request, HttpServletResponse response)
focal_class.signature:  HttpResponseWrapper(HttpRequestWrapper request, HttpServletResponse response)
focal_class.class_method_signature: HttpResponseWrapper.sendError(int sc)
focal_class.full_signature: @Override public final void sendError(int sc)
focal_class.identifier: sendError
focal_class.modifiers: @Override public final
focal_class.parameters: (int sc)
focal_class.return: void
focal_class.signature: void sendError(int sc)
focal_class.class_method_signature: HttpResponseWrapper.sendError(int sc, String msg)
focal_class.full_signature: @Override public final void sendError(int sc, String msg)
focal_class.identifier: sendError
focal_class.modifiers: @Override public final
focal_class.parameters: (int sc, String msg)
focal_class.return: void
focal_class.signature: void sendError(int sc, String msg)
focal_class.class_method_signature: HttpResponseWrapper.sendRedirect(String location)
focal_class.full_signature: @Override public final void sendRedirect(String location)
focal_class.identifier: sendRedirect
focal_class.modifiers: @Override public final
focal_class.parameters: (String location)
focal_class.return: void
focal_class.signature: void sendRedirect(String location)
focal_class.class_method_signature: HttpResponseWrapper.getOutputStream()
focal_class.full_signature: @Override public SaveSessionServletOutputStream getOutputStream()
focal_class.identifier: getOutputStream
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SaveSessionServletOutputStream
focal_class.signature: SaveSessionServletOutputStream getOutputStream()
focal_class.class_method_signature: HttpResponseWrapper.getWriter()
focal_class.full_signature: @Override public PrintWriter getWriter()
focal_class.identifier: getWriter
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: PrintWriter
focal_class.signature: PrintWriter getWriter()
focal_class.class_method_signature: HttpResponseWrapper.wrapOutputStream(ServletOutputStream servletOutputStream)
focal_class.full_signature: protected SaveSessionServletOutputStream wrapOutputStream(ServletOutputStream servletOutputStream)
focal_class.identifier: wrapOutputStream
focal_class.modifiers: protected
focal_class.parameters: (ServletOutputStream servletOutputStream)
focal_class.return: SaveSessionServletOutputStream
focal_class.signature: SaveSessionServletOutputStream wrapOutputStream(ServletOutputStream servletOutputStream)
focal_class.class_method_signature: HttpResponseWrapper.wrapPrintWriter()
focal_class.full_signature: private PrintWriter wrapPrintWriter()
focal_class.identifier: wrapPrintWriter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: PrintWriter
focal_class.signature: PrintWriter wrapPrintWriter()
focal_class.class_method_signature: HttpResponseWrapper.addHeader(String name, String value)
focal_class.full_signature: @Override public void addHeader(String name, String value)
focal_class.identifier: addHeader
focal_class.modifiers: @Override public
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void addHeader(String name, String value)
focal_class.class_method_signature: HttpResponseWrapper.checkContentLenghtHeader(String name, String value)
focal_class.full_signature:  void checkContentLenghtHeader(String name, String value)
focal_class.identifier: checkContentLenghtHeader
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void checkContentLenghtHeader(String name, String value)
focal_class.class_method_signature: HttpResponseWrapper.setHeader(String name, String value)
focal_class.full_signature: @Override public void setHeader(String name, String value)
focal_class.identifier: setHeader
focal_class.modifiers: @Override public
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void setHeader(String name, String value)
focal_class.class_method_signature: HttpResponseWrapper.setContentLength(int len)
focal_class.full_signature: @Override public void setContentLength(int len)
focal_class.identifier: setContentLength
focal_class.modifiers: @Override public
focal_class.parameters: (int len)
focal_class.return: void
focal_class.signature: void setContentLength(int len)
focal_class.class_method_signature: HttpResponseWrapper.checkContentLength(int contentLengthToWrite)
focal_class.full_signature: private void checkContentLength(int contentLengthToWrite)
focal_class.identifier: checkContentLength
focal_class.modifiers: private
focal_class.parameters: (int contentLengthToWrite)
focal_class.return: void
focal_class.signature: void checkContentLength(int contentLengthToWrite)
focal_class.class_method_signature: HttpResponseWrapper.reset()
focal_class.full_signature: @Override public void reset()
focal_class.identifier: reset
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: HttpResponseWrapper.encodeURL(String url)
focal_class.full_signature: @Override public String encodeURL(String url)
focal_class.identifier: encodeURL
focal_class.modifiers: @Override public
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String encodeURL(String url)
focal_class.class_method_signature: HttpResponseWrapper.flushBuffer()
focal_class.full_signature: @Override public void flushBuffer()
focal_class.identifier: flushBuffer
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flushBuffer()
focal_class.class_method_signature: HttpResponseWrapper.flushAndPropagate()
focal_class.full_signature: private void flushAndPropagate()
focal_class.identifier: flushAndPropagate
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flushAndPropagate()
focal_class.class_method_signature: HttpResponseWrapper.closeOutput()
focal_class.full_signature: private void closeOutput()
focal_class.identifier: closeOutput
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeOutput()
focal_class.superclass: extends HttpServletResponseWrapper
focal_method.body: @Override
    public PrintWriter getWriter() throws IOException {
      if (outputStream != null) {
        throw new IllegalStateException("Only one of getWriter()/getOutputStream() can be called, and output stream is already used.");
      }
      if (writer == null) {
        writer = wrapPrintWriter();
      }
      return writer;
    }
focal_method.class_method_signature: HttpResponseWrapper.getWriter()
focal_method.full_signature: @Override public PrintWriter getWriter()
focal_method.identifier: getWriter
focal_method.invocations: wrapPrintWriter
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: PrintWriter
focal_method.signature: PrintWriter getWriter()