Returns a reference to {@code this} so multiple operations can be appended together.
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 ); try { ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().invoke( msg, ep );
436437438439440441442443444445446
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().invoke( 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
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 );
462463464465466467468469470471472
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 );
250251252253254255256257258259260
350351352353354355356357358359360
150151152153154155156157158159160
if( apr==null ) return; MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); msg.reset(); msg.appendByte( SHM_RESET ); this.invoke( msg, mCtx ); } public void dumpScoreboard(String fname) throws IOException {
162163164165166167168169170171172
MsgContext mCtx=createMsgContext(); Msg msg=(Msg)mCtx.getMsg(0); C2BConverter c2b=mCtx.getConverter(); msg.reset(); msg.appendByte( SHM_DUMP ); appendString( msg, fname, c2b); this.invoke( msg, mCtx ); }