Class DefaultHttpServerResponse

java.lang.Object
cloud.piranha.http.impl.DefaultHttpServerResponse
All Implemented Interfaces:
HttpServerResponse

public class DefaultHttpServerResponse
extends java.lang.Object
implements HttpServerResponse
The default implementation of HTTP Server Response.
Author:
Manfred Riem ([email protected])
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultHttpServerResponse​(java.net.Socket socket)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void closeResponse()  
    java.lang.String getHeader​(java.lang.String name)
    Get the header.
    java.io.OutputStream getOutputStream()
    Get the output stream.
    void setHeader​(java.lang.String name, java.lang.String value)
    Set the specified header.
    void setStatus​(int status)
    Set the status.
    void writeHeaders()
    Write the response headers.
    void writeStatusLine()
    Write the status line.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait