@ Override public StateConnection service ( ) throws IOException { try { ConnectionProtocol request = requestOrCreate ( ) ; if ( request == null ) { log . warning ( "Unexpected empty request: " + this ) ; return StateConnection . CLOSE ; } //_requestHttp.parseInvocation(); /* if (requestFacade == null) { _requestHttp.startRequest(); requestFacade = _requestHttp.getRequestFacade(); //return NextState.CLOSE; } */ StateConnection next = request . service ( ) ; if ( next != StateConnection . CLOSE ) { return next ; } else { return onCloseRead ( ) ; } } catch ( OutOfMemoryError e ) { String msg = "Out of memory in RequestProtocolHttp" ; ShutdownSystem . shutdownOutOfMemory ( msg ) ; log . log ( Level . WARNING , e . toString ( ) , e ) ; } catch ( Throwable e ) { e . printStackTrace ( ) ; log . log ( Level . WARNING , e . toString ( ) , e ) ; } return StateConnection . CLOSE ; }
Service a HTTP request .