synchronized public void close()
    {
        if(this.closed)
            return; // multiple calls ok
        closed = true;
        for(HTTPMethod m : this.methods) {
            m.close(); // forcibly close; will invoke removemethod().
        }
        methods.clear();
    }
synchronized public void close()
    {
        if(this.closed)
            return; 
        closed = true;
        for(HTTPMethod m : this.methods) {
            m.close(); 
        }
        methods.clear();
    }
synchronized public void close ( ) { if ( this . closed ) return ; // multiple calls ok closed = true ; for ( HTTPMethod m : this . methods ) { m . close ( ) ; // forcibly close; will invoke removemethod(). } methods . clear ( ) ; }
Close the session. This implies closing
any open methods.
Close the session . This implies closing any open methods .