com.webpieces.http2engine.api.error.ShutdownStream 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.api.error;
import com.webpieces.http2.api.dto.lowlevel.CancelReason;
import com.webpieces.http2.api.dto.lowlevel.lib.Http2MsgType;
public class ShutdownStream implements CancelReason {
private int streamId;
private ConnectionCancelled cause;
public ShutdownStream(int streamId, ConnectionCancelled reset2) {
this.streamId = streamId;
this.cause = reset2;
}
@Override
public int getStreamId() {
return streamId;
}
@Override
public Http2MsgType getMessageType() {
return Http2MsgType.APP_CANCEL_STREAM;
}
public ConnectionCancelled getCause() {
return cause;
}
@Override
public boolean isEndOfStream() {
return true;
}
@Override
public void setStreamId(int streamId) {
this.streamId = streamId;
}
@Override
public String toString() {
return "ShutdownStream [streamId=" + streamId + ", cause=" + cause + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy