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

fm.liu.engine.Session Maven / Gradle / Ivy

package fm.liu.engine;

import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

public class Session {
    private Request request;
    private Response response;
    private final SocketChannel channel;
    protected volatile ByteBuffer readBuffer;
    protected volatile ByteBuffer writeBuffer;

    public Session(SocketChannel channel) {
        this.channel = channel;
        this.response = new Response();
    }

    public Request getRequest() {
        return request;
    }

    public void setRequest(Request request) {
        this.request = request;
    }

    public Response getResponse() {
        return response;
    }

    public void setResponse(Response response) {
        this.response = response;
    }

    public SocketChannel getChannel() {
        return channel;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy