Code example for SessionOutputBuffer

Methods: getMetrics

0
     * This method will invoke {@link #createSessionInputBuffer(Socket, int, HttpParams)} 
     * and {@link #createSessionOutputBuffer(Socket, int, HttpParams)} methods 
     * to create session input / output buffers bound to this socket and then 
     * will invoke {@link #init(SessionInputBuffer, SessionOutputBuffer, HttpParams)} 
     * method to pass references to those buffers to the underlying HTTP message 
     * parser and formatter. 
     * <p> 
     * After this method's execution the connection status will be reported 
     * as open and the {@link #isOpen()} will return <code>true</code>. 
     * 
     * @param socket the socket. 
     * @param params HTTP parameters. 
     * @throws IOException in case of an I/O error. 
     */ 
    protected void bind( 
            final Socket socket,
            final HttpParams params) throws IOException {
        if (socket == null) {
            throw new IllegalArgumentException("Socket may not be null");
        } 
        if (params == null) {