test_class.declarator: httpServletResponseImpl
test_class.modifier: private
test_class.original_string: private HttpServletResponseImpl httpServletResponseImpl;
test_class.type: HttpServletResponseImpl
test_class.var_name: httpServletResponseImpl
test_class.file: http/src/test/java/ro/polak/http/servlet/impl/HttpServletResponseImplTest.java
test_class.identifier: HttpServletResponseImplTest
test_case.body: @Test
      public void shouldNotCreateASinglePrintWriter() throws IOException {
          assertThat(httpServletResponseImpl.getWriter().equals(httpServletResponseImpl.getWriter()), is(true));
      }
test_case.class_method_signature: HttpServletResponseImplTest.shouldNotCreateASinglePrintWriter()
test_case.full_signature: @Test public void shouldNotCreateASinglePrintWriter()
test_case.identifier: shouldNotCreateASinglePrintWriter
test_case.invocations: assertThat equals getWriter getWriter is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldNotCreateASinglePrintWriter()
focal_class.declarator: NEW_LINE = "\r\n"
focal_class.modifier: private static final
focal_class.original_string: private static final String NEW_LINE = "\r\n";
focal_class.type: String
focal_class.var_name: NEW_LINE
focal_class.declarator: TRANSFER_ENCODING_CHUNKED = "chunked"
focal_class.modifier: private static final
focal_class.original_string: private static final String TRANSFER_ENCODING_CHUNKED = "chunked";
focal_class.type: String
focal_class.var_name: TRANSFER_ENCODING_CHUNKED
focal_class.declarator: CONNECTION_KEEP_ALIVE = "keep-alive"
focal_class.modifier: private static final
focal_class.original_string: private static final String CONNECTION_KEEP_ALIVE = "keep-alive";
focal_class.type: String
focal_class.var_name: CONNECTION_KEEP_ALIVE
focal_class.declarator: CONNECTION_CLOSE = "close"
focal_class.modifier: private static final
focal_class.original_string: private static final String CONNECTION_CLOSE = "close";
focal_class.type: String
focal_class.var_name: CONNECTION_CLOSE
focal_class.declarator: DEFAULT_BUFFER_SIZE = 1024
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_BUFFER_SIZE = 1024;
focal_class.type: int
focal_class.var_name: DEFAULT_BUFFER_SIZE
focal_class.declarator: headersSerializer
focal_class.modifier: private final
focal_class.original_string: private final Serializer<Headers> headersSerializer;
focal_class.type: Serializer<Headers>
focal_class.var_name: headersSerializer
focal_class.declarator: streamHelper
focal_class.modifier: private final
focal_class.original_string: private final StreamHelper streamHelper;
focal_class.type: StreamHelper
focal_class.var_name: streamHelper
focal_class.declarator: cookieHeaderSerializer
focal_class.modifier: private final
focal_class.original_string: private final Serializer<Cookie> cookieHeaderSerializer;
focal_class.type: Serializer<Cookie>
focal_class.var_name: cookieHeaderSerializer
focal_class.declarator: outputStream
focal_class.modifier: private final
focal_class.original_string: private final OutputStream outputStream;
focal_class.type: OutputStream
focal_class.var_name: outputStream
focal_class.declarator: headers
focal_class.modifier: private
focal_class.original_string: private Headers headers;
focal_class.type: Headers
focal_class.var_name: headers
focal_class.declarator: wrappedOutputStream
focal_class.modifier: private
focal_class.original_string: private ServletOutputStream wrappedOutputStream;
focal_class.type: ServletOutputStream
focal_class.var_name: wrappedOutputStream
focal_class.declarator: printWriter
focal_class.modifier: private
focal_class.original_string: private ServletPrintWriter printWriter;
focal_class.type: ServletPrintWriter
focal_class.var_name: printWriter
focal_class.declarator: isCommitted
focal_class.modifier: private
focal_class.original_string: private boolean isCommitted;
focal_class.type: boolean
focal_class.var_name: isCommitted
focal_class.declarator: cookies
focal_class.modifier: private
focal_class.original_string: private List<Cookie> cookies;
focal_class.type: List<Cookie>
focal_class.var_name: cookies
focal_class.declarator: status
focal_class.modifier: private
focal_class.original_string: private String status;
focal_class.type: String
focal_class.var_name: status
focal_class.declarator: bufferSize = DEFAULT_BUFFER_SIZE
focal_class.modifier: private
focal_class.original_string: private int bufferSize = DEFAULT_BUFFER_SIZE;
focal_class.type: int
focal_class.var_name: bufferSize
focal_class.file: http/src/main/java/ro/polak/http/servlet/impl/HttpServletResponseImpl.java
focal_class.identifier: HttpServletResponseImpl
focal_class.interfaces: implements HttpServletResponse
focal_class.class_method_signature: HttpServletResponseImpl.HttpServletResponseImpl(final Serializer<Headers> headersSerializer,
                                     final Serializer<Cookie> cookieHeaderSerializer,
                                     final StreamHelper streamHelper,
                                     final OutputStream outputStream)
focal_class.full_signature: public  HttpServletResponseImpl(final Serializer<Headers> headersSerializer,
                                     final Serializer<Cookie> cookieHeaderSerializer,
                                     final StreamHelper streamHelper,
                                     final OutputStream outputStream)
focal_class.identifier: HttpServletResponseImpl
focal_class.modifiers: public
focal_class.parameters: (final Serializer<Headers> headersSerializer,
                                     final Serializer<Cookie> cookieHeaderSerializer,
                                     final StreamHelper streamHelper,
                                     final OutputStream outputStream)
focal_class.signature:  HttpServletResponseImpl(final Serializer<Headers> headersSerializer,
                                     final Serializer<Cookie> cookieHeaderSerializer,
                                     final StreamHelper streamHelper,
                                     final OutputStream outputStream)
focal_class.class_method_signature: HttpServletResponseImpl.addCookie(final Cookie cookie)
focal_class.full_signature: @Override public void addCookie(final Cookie cookie)
focal_class.identifier: addCookie
focal_class.modifiers: @Override public
focal_class.parameters: (final Cookie cookie)
focal_class.return: void
focal_class.signature: void addCookie(final Cookie cookie)
focal_class.class_method_signature: HttpServletResponseImpl.getCookies()
focal_class.full_signature: @Override public List<Cookie> getCookies()
focal_class.identifier: getCookies
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Cookie>
focal_class.signature: List<Cookie> getCookies()
focal_class.class_method_signature: HttpServletResponseImpl.isCommitted()
focal_class.full_signature: @Override public boolean isCommitted()
focal_class.identifier: isCommitted
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCommitted()
focal_class.class_method_signature: HttpServletResponseImpl.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: HttpServletResponseImpl.resetBuffer()
focal_class.full_signature: @Override public void resetBuffer()
focal_class.identifier: resetBuffer
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetBuffer()
focal_class.class_method_signature: HttpServletResponseImpl.setBufferSize(final int bufferSize)
focal_class.full_signature: @Override public void setBufferSize(final int bufferSize)
focal_class.identifier: setBufferSize
focal_class.modifiers: @Override public
focal_class.parameters: (final int bufferSize)
focal_class.return: void
focal_class.signature: void setBufferSize(final int bufferSize)
focal_class.class_method_signature: HttpServletResponseImpl.setCharacterEncoding(final String charset)
focal_class.full_signature: @Override public void setCharacterEncoding(final String charset)
focal_class.identifier: setCharacterEncoding
focal_class.modifiers: @Override public
focal_class.parameters: (final String charset)
focal_class.return: void
focal_class.signature: void setCharacterEncoding(final String charset)
focal_class.class_method_signature: HttpServletResponseImpl.sendRedirect(final String location)
focal_class.full_signature: @Override public void sendRedirect(final String location)
focal_class.identifier: sendRedirect
focal_class.modifiers: @Override public
focal_class.parameters: (final String location)
focal_class.return: void
focal_class.signature: void sendRedirect(final String location)
focal_class.class_method_signature: HttpServletResponseImpl.setContentType(final String contentType)
focal_class.full_signature: @Override public void setContentType(final String contentType)
focal_class.identifier: setContentType
focal_class.modifiers: @Override public
focal_class.parameters: (final String contentType)
focal_class.return: void
focal_class.signature: void setContentType(final String contentType)
focal_class.class_method_signature: HttpServletResponseImpl.setLocale(final Locale loc)
focal_class.full_signature: @Override public void setLocale(final Locale loc)
focal_class.identifier: setLocale
focal_class.modifiers: @Override public
focal_class.parameters: (final Locale loc)
focal_class.return: void
focal_class.signature: void setLocale(final Locale loc)
focal_class.class_method_signature: HttpServletResponseImpl.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: HttpServletResponseImpl.getBufferSize()
focal_class.full_signature: @Override public int getBufferSize()
focal_class.identifier: getBufferSize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBufferSize()
focal_class.class_method_signature: HttpServletResponseImpl.getCharacterEncoding()
focal_class.full_signature: @Override public String getCharacterEncoding()
focal_class.identifier: getCharacterEncoding
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCharacterEncoding()
focal_class.class_method_signature: HttpServletResponseImpl.getContentType()
focal_class.full_signature: @Override public String getContentType()
focal_class.identifier: getContentType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContentType()
focal_class.class_method_signature: HttpServletResponseImpl.getLocale()
focal_class.full_signature: @Override public Locale getLocale()
focal_class.identifier: getLocale
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Locale
focal_class.signature: Locale getLocale()
focal_class.class_method_signature: HttpServletResponseImpl.setKeepAlive(final boolean keepAlive)
focal_class.full_signature: @Override public void setKeepAlive(final boolean keepAlive)
focal_class.identifier: setKeepAlive
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean keepAlive)
focal_class.return: void
focal_class.signature: void setKeepAlive(final boolean keepAlive)
focal_class.class_method_signature: HttpServletResponseImpl.getKeepAliveHeaderValue(final boolean keepAlive)
focal_class.full_signature: private String getKeepAliveHeaderValue(final boolean keepAlive)
focal_class.identifier: getKeepAliveHeaderValue
focal_class.modifiers: private
focal_class.parameters: (final boolean keepAlive)
focal_class.return: String
focal_class.signature: String getKeepAliveHeaderValue(final boolean keepAlive)
focal_class.class_method_signature: HttpServletResponseImpl.setContentLength(final int length)
focal_class.full_signature: @Override public void setContentLength(final int length)
focal_class.identifier: setContentLength
focal_class.modifiers: @Override public
focal_class.parameters: (final int length)
focal_class.return: void
focal_class.signature: void setContentLength(final int length)
focal_class.class_method_signature: HttpServletResponseImpl.setContentLength(final long length)
focal_class.full_signature: @Override public void setContentLength(final long length)
focal_class.identifier: setContentLength
focal_class.modifiers: @Override public
focal_class.parameters: (final long length)
focal_class.return: void
focal_class.signature: void setContentLength(final long length)
focal_class.class_method_signature: HttpServletResponseImpl.getHeaders()
focal_class.full_signature: @Override public Headers getHeaders()
focal_class.identifier: getHeaders
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Headers
focal_class.signature: Headers getHeaders()
focal_class.class_method_signature: HttpServletResponseImpl.setStatus(final String status)
focal_class.full_signature: @Override public void setStatus(final String status)
focal_class.identifier: setStatus
focal_class.modifiers: @Override public
focal_class.parameters: (final String status)
focal_class.return: void
focal_class.signature: void setStatus(final String status)
focal_class.class_method_signature: HttpServletResponseImpl.setHeader(final String name, final String value)
focal_class.full_signature: @Override public void setHeader(final String name, final String value)
focal_class.identifier: setHeader
focal_class.modifiers: @Override public
focal_class.parameters: (final String name, final String value)
focal_class.return: void
focal_class.signature: void setHeader(final String name, final String value)
focal_class.class_method_signature: HttpServletResponseImpl.setIntHeader(final String name, final int value)
focal_class.full_signature: @Override public void setIntHeader(final String name, final int value)
focal_class.identifier: setIntHeader
focal_class.modifiers: @Override public
focal_class.parameters: (final String name, final int value)
focal_class.return: void
focal_class.signature: void setIntHeader(final String name, final int value)
focal_class.class_method_signature: HttpServletResponseImpl.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: HttpServletResponseImpl.getOutputStream()
focal_class.full_signature: @Override public ServletOutputStream getOutputStream()
focal_class.identifier: getOutputStream
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ServletOutputStream
focal_class.signature: ServletOutputStream getOutputStream()
focal_class.class_method_signature: HttpServletResponseImpl.flushHeaders()
focal_class.full_signature: public void flushHeaders()
focal_class.identifier: flushHeaders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flushHeaders()
focal_class.class_method_signature: HttpServletResponseImpl.serveStream(final InputStream inputStream)
focal_class.full_signature: public void serveStream(final InputStream inputStream)
focal_class.identifier: serveStream
focal_class.modifiers: public
focal_class.parameters: (final InputStream inputStream)
focal_class.return: void
focal_class.signature: void serveStream(final InputStream inputStream)
focal_class.class_method_signature: HttpServletResponseImpl.serveStream(final InputStream inputStream, final Range range)
focal_class.full_signature: public void serveStream(final InputStream inputStream, final Range range)
focal_class.identifier: serveStream
focal_class.modifiers: public
focal_class.parameters: (final InputStream inputStream, final Range range)
focal_class.return: void
focal_class.signature: void serveStream(final InputStream inputStream, final Range range)
focal_class.class_method_signature: HttpServletResponseImpl.serveStream(final InputStream inputStream,
                              final List<Range> rangeList,
                              final String boundary,
                              final String contentType,
                              final long totalLength)
focal_class.full_signature: public void serveStream(final InputStream inputStream,
                              final List<Range> rangeList,
                              final String boundary,
                              final String contentType,
                              final long totalLength)
focal_class.identifier: serveStream
focal_class.modifiers: public
focal_class.parameters: (final InputStream inputStream,
                              final List<Range> rangeList,
                              final String boundary,
                              final String contentType,
                              final long totalLength)
focal_class.return: void
focal_class.signature: void serveStream(final InputStream inputStream,
                              final List<Range> rangeList,
                              final String boundary,
                              final String contentType,
                              final long totalLength)
focal_class.class_method_signature: HttpServletResponseImpl.getStatus()
focal_class.full_signature: public String getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getStatus()
focal_class.class_method_signature: HttpServletResponseImpl.isTransferChunked()
focal_class.full_signature: private boolean isTransferChunked()
focal_class.identifier: isTransferChunked
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isTransferChunked()
focal_class.class_method_signature: HttpServletResponseImpl.flush()
focal_class.full_signature: public void flush()
focal_class.identifier: flush
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_method.body: @Override
      public PrintWriter getWriter() {
          if (printWriter == null) {
              if (isTransferChunked()) {
                  printWriter = new ChunkedPrintWriter(wrappedOutputStream);
              } else {
                  printWriter = new ServletPrintWriter(wrappedOutputStream);
              }
          }
  
          return printWriter;
      }
focal_method.class_method_signature: HttpServletResponseImpl.getWriter()
focal_method.full_signature: @Override public PrintWriter getWriter()
focal_method.identifier: getWriter
focal_method.invocations: isTransferChunked
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: PrintWriter
focal_method.signature: PrintWriter getWriter()