com.webpieces.http2engine.impl.svr.ServerStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http2-engine Show documentation
Show all versions of http2-engine Show documentation
A re-usable asynchronous HTTP/2 parser
package com.webpieces.http2engine.impl.svr;
import org.webpieces.util.futures.XFuture;
import org.webpieces.javasm.api.Memento;
import com.webpieces.http2.api.streaming.RequestStreamHandle;
import com.webpieces.http2.api.streaming.StreamRef;
import com.webpieces.http2.api.streaming.StreamWriter;
import com.webpieces.http2engine.impl.shared.data.Stream;
public class ServerStream extends Stream {
private RequestStreamHandle streamHandle;
private StreamRef streamRef;
public ServerStream(String logId, int streamId, Memento currentState,
long localInitialWindowSize, long remoteInitialWindowSize) {
super(logId, streamId, currentState, localInitialWindowSize, remoteInitialWindowSize, false);
}
public XFuture getStreamWriter() {
return streamRef.getWriter();
}
public void setStreamHandle(RequestStreamHandle streamHandle, StreamRef streamRef) {
this.streamHandle = streamHandle;
this.streamRef = streamRef;
}
public RequestStreamHandle getStreamHandle() {
return streamHandle;
}
public StreamRef getStreamRef() {
return streamRef;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy