/** * @return the close flag as integer * @see #FLAG_CLOSE */ public byte getFlags() { return isClose() ? FLAG_CLOSE : 0; }
public PushSynInfo(int associatedStreamId, PushInfo pushInfo){ super(pushInfo.getTimeout(), pushInfo.getUnit(), pushInfo.getHeaders(), pushInfo.isClose(), (byte)0); this.associatedStreamId = associatedStreamId; }
private PushInfo convertPushInfo(PushInfo pushInfo, Stream from, Stream to) { Fields headersToConvert = pushInfo.getHeaders(); Fields headers = convertHeaders(from, to, headersToConvert); return new PushInfo(getTimeout(), TimeUnit.MILLISECONDS, headers, pushInfo.isClose()); }