All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 Jakarta Enterprise Beans and Jakarta Messaging, including all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and Jakarta Messaging 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).

The newest version!
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)));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy