Returns a reference to {@code this} so multiple operations can be appended together.
436437438439440441442443444445446
if( !res.isCommitted() ) this.action( ActionCode.ACTION_COMMIT, param ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_END_RESPONSE ); msg.appendByte( 1 ); try { ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().send( msg, ep );
437438439440441442443444445446447
this.action( ActionCode.ACTION_COMMIT, param ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_END_RESPONSE ); msg.appendByte( 1 ); try { ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().send( msg, ep );
251252253254255256257258259260261
thisTime=chunkSize; } len-=thisTime; msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_SEND_BODY_CHUNK); if( log.isDebugEnabled() ) log.debug("doWrite " + off + " " + thisTime + " " + len ); msg.appendBytes( chunk.getBytes(), chunk.getOffset() + off, thisTime ); off+=thisTime; ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().send( msg, ep );
353354355356357358359360361362363
} MsgContext ep=(MsgContext)res.getNote( epNote ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte(HandlerRequest.JK_AJP13_SEND_HEADERS); msg.appendInt( res.getStatus() ); MessageBytes mb=(MessageBytes)ep.getNote( tmpMessageBytesNote ); if( mb==null ) { mb=MessageBytes.newInstance();
461462463464465466467468469470471
462463464465466467468469470471472
241242243244245246247248249250251
thisTime=chunkSize; } len-=thisTime; msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_SEND_BODY_CHUNK); if( log.isDebugEnabled() ) log.debug("doWrite " + off + " " + thisTime + " " + len ); msg.appendBytes( chunk.getBytes(), chunk.getOffset() + off, thisTime ); off+=thisTime; ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().invoke( msg, ep );
339340341342343344345346347348349
} MsgContext ep=(MsgContext)res.getNote( epNote ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte(HandlerRequest.JK_AJP13_SEND_HEADERS); msg.appendInt( res.getStatus() ); MessageBytes mb=(MessageBytes)ep.getNote( tmpMessageBytesNote ); if( mb==null ) { mb=new MessageBytes();
435436437438439440441442443444445
if( !res.isCommitted() ) this.action( ActionCode.ACTION_COMMIT, param ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_END_RESPONSE ); msg.appendByte( 1 ); ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().invoke( msg, ep );
this.action( ActionCode.ACTION_COMMIT, param ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_END_RESPONSE ); msg.appendByte( 1 ); ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().invoke( msg, ep ); ep.setType( JkHandler.HANDLE_FLUSH );