Codota Logo
org.eclipse.jetty.http2.frames
Code IndexAdd Codota to your IDE (free)

How to use org.eclipse.jetty.http2.frames

Best Java code snippets using org.eclipse.jetty.http2.frames (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jetty.http2/http2-common

/**
 * Creates a PING frame with the given {@code long} {@code value} as payload.
 *
 * @param value the value to use as a payload for this PING frame
 * @param reply whether this PING frame is a reply
 */
public PingFrame(long value, boolean reply)
{
  this(toBytes(value), reply);
}
origin: org.eclipse.jetty.http2/http2-common

  @Override
  public String toString()
  {
    return frame.toString();
  }
}
origin: org.eclipse.jetty.http2/http2-common

private DataEntry(DataFrame frame, IStream stream, Callback callback)
{
  super(frame, stream, callback);
  // We don't do any padding, so the flow control length is
  // always the data remaining. This simplifies the handling
  // of data frames that cannot be completely written due to
  // the flow control window exhausting, since in that case
  // we would have to count the padding only once.
  dataRemaining = frame.remaining();
}
origin: org.eclipse.jetty.http2/http2-common

  private void generatePriority(ByteBuffer header, PriorityFrame priority)
  {
    if (priority != null)
    {
      priorityGenerator.generatePriorityBody(header, priority.getStreamId(),
          priority.getParentStreamId(), priority.getWeight(), priority.isExclusive());
    }
  }
}
origin: org.eclipse.jetty.http2/http2-common

private void onHeaders(int parentStreamId, int weight, boolean exclusive, MetaData metaData)
{
  PriorityFrame priorityFrame = null;
  if (hasFlag(Flags.PRIORITY))
    priorityFrame = new PriorityFrame(getStreamId(), parentStreamId, weight, exclusive);
  HeadersFrame frame = new HeadersFrame(getStreamId(), metaData, priorityFrame, isEndStream());
  notifyHeaders(frame);
}
origin: org.eclipse.jetty.http2/http2-common

@Override
public int generate(ByteBufferPool.Lease lease, Frame frame)
{
  SettingsFrame settingsFrame = (SettingsFrame)frame;
  return generateSettings(lease, settingsFrame.getSettings(), settingsFrame.isReply());
}
origin: org.eclipse.jetty.http2/http2-common

public int control(ByteBufferPool.Lease lease, Frame frame)
{
  return generators[frame.getType().getType()].generate(lease, frame);
}
origin: org.eclipse.jetty.http2/http2-common

  @Override
  public String toString()
  {
    return String.format("%s,%d/%s/%s/%s",
        super.toString(),
        lastStreamId,
        ErrorCode.toString(error, null),
        tryConvertPayload(),
        closeState);
  }
}
origin: org.eclipse.jetty.http2/http2-common

private boolean onReset(int error)
{
  ResetFrame frame = new ResetFrame(getStreamId(), error);
  reset();
  notifyReset(frame);
  return true;
}
origin: org.eclipse.jetty.http2/http2-common

public long getPayloadAsLong()
{
  return toLong(payload);
}
origin: org.eclipse.jetty.http2/http2-common

  private void complete()
  {
    frames(null, Callback.NOOP, newGoAwayFrame(CloseState.CLOSED, ErrorCode.NO_ERROR.code, null), new DisconnectFrame());
  }
}
origin: org.eclipse.jetty.http2/http2-common

private boolean onPriority(int parentStreamId, int weight, boolean exclusive)
{
  PriorityFrame frame = new PriorityFrame(getStreamId(), parentStreamId, weight, exclusive);
  reset();
  notifyPriority(frame);
  return true;
}
origin: jenkinsci/winstone

private void onHeaders(int parentStreamId, int weight, boolean exclusive, MetaData metaData)
{
  PriorityFrame priorityFrame = null;
  if (hasFlag(Flags.PRIORITY))
    priorityFrame = new PriorityFrame(getStreamId(), parentStreamId, weight, exclusive);
  HeadersFrame frame = new HeadersFrame(getStreamId(), metaData, priorityFrame, isEndStream());
  notifyHeaders(frame);
}
origin: jenkinsci/winstone

public int control(ByteBufferPool.Lease lease, Frame frame)
{
  return generators[frame.getType().getType()].generate(lease, frame);
}
origin: jenkinsci/winstone

  @Override
  public String toString()
  {
    return String.format("%s,%d/%s/%s/%s",
        super.toString(),
        lastStreamId,
        ErrorCode.toString(error, null),
        tryConvertPayload(),
        closeState);
  }
}
origin: jenkinsci/winstone

  @Override
  public String toString()
  {
    return frame.toString();
  }
}
origin: jenkinsci/winstone

/**
 * Creates a PING frame with the given {@code long} {@code value} as payload.
 *
 * @param value the value to use as a payload for this PING frame
 * @param reply whether this PING frame is a reply
 */
public PingFrame(long value, boolean reply)
{
  this(toBytes(value), reply);
}
origin: jenkinsci/winstone

private DataEntry(DataFrame frame, IStream stream, Callback callback)
{
  super(frame, stream, callback);
  // We don't do any padding, so the flow control length is
  // always the data remaining. This simplifies the handling
  // of data frames that cannot be completely written due to
  // the flow control window exhausting, since in that case
  // we would have to count the padding only once.
  dataRemaining = frame.remaining();
}
origin: jenkinsci/winstone

public long getPayloadAsLong()
{
  return toLong(payload);
}
origin: org.eclipse.jetty.http2/http2-common

  @Override
  public String toString()
  {
    return String.format("%s#%d/#%d{weight=%d,exclusive=%b}", super.toString(), streamId, parentStreamId, weight, exclusive);
  }
}
org.eclipse.jetty.http2.frames

Most used classes

  • HeadersFrame
  • DataFrame
  • PushPromiseFrame
  • SettingsFrame
  • ResetFrame
  • DisconnectFrame,
  • FailureFrame,
  • Frame,
  • FrameType,
  • GoAwayFrame,
  • PingFrame,
  • PrefaceFrame,
  • PriorityFrame
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now