io.undertow.protocols.ajp.AjpClientCPingStreamSinkChannel Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package io.undertow.protocols.ajp;
import io.undertow.server.protocol.framed.SendFrameHeader;
import io.undertow.util.ImmediatePooledByteBuffer;
import java.nio.ByteBuffer;
/**
* @author Stuart Douglas
*/
public class AjpClientCPingStreamSinkChannel extends AbstractAjpClientStreamSinkChannel {
private static final byte[] CPING = {0x12, 0x34, 0, 1, 10}; //CPONG response data
protected AjpClientCPingStreamSinkChannel(AjpClientChannel channel) {
super(channel);
}
@Override
protected final SendFrameHeader createFrameHeader() {
return new SendFrameHeader(new ImmediatePooledByteBuffer(ByteBuffer.wrap(CPING)));
}
}