Codota Logo
PushInfo.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.jetty.spdy.api.PushInfo
constructor

Best Java code snippets using org.eclipse.jetty.spdy.api.PushInfo.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.eclipse.jetty.spdy/spdy-http-server

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());
}
origin: org.eclipse.jetty.spdy/spdy-http-server

private void pushResource(String pushResource)
{
  Fields.Field scheme = requestHeaders.get(HTTPSPDYHeader.SCHEME.name(version));
  Fields.Field host = requestHeaders.get(HTTPSPDYHeader.HOST.name(version));
  Fields.Field uri = requestHeaders.get(HTTPSPDYHeader.URI.name(version));
  final Fields pushHeaders = createPushHeaders(scheme, host, pushResource);
  final Fields pushRequestHeaders = createRequestHeaders(scheme, host, uri, pushResource);
  stream.push(new PushInfo(pushHeaders, false), new Promise<Stream>()
  {
    @Override
    public void succeeded(Stream pushStream)
    {
      if (LOG.isDebugEnabled())
        LOG.debug("Headers pushed for {} on {}", pushHeaders.get(HTTPSPDYHeader.URI.name(version)), pushStream);
      queue.offer(new PushResource(pushStream, pushRequestHeaders));
      sendNextResourceData();
    }
    @Override
    public void failed(Throwable x)
    {
      LOG.debug("Creating push stream failed.", x);
      sendNextResourceData();
    }
  });
}
origin: org.eclipse.jetty.spdy/spdy-core

private void processSyn(SessionFrameListener listener, IStream stream, SynStreamFrame frame)
{
  stream.process(frame);
  // Update the last stream id before calling the application (which may send a GO_AWAY)
  updateLastStreamId(stream);
  StreamFrameListener streamListener;
  if (stream.isUnidirectional())
  {
    PushInfo pushInfo = new PushInfo(frame.getHeaders(), frame.isClose());
    streamListener = notifyOnPush(stream.getAssociatedStream().getStreamFrameListener(), stream, pushInfo);
  }
  else
  {
    SynInfo synInfo = new SynInfo(frame.getHeaders(), frame.isClose(), frame.getPriority());
    streamListener = notifyOnSyn(listener, stream, synInfo);
  }
  stream.setStreamFrameListener(streamListener);
  // The onSyn() listener may have sent a frame that closed the stream
  if (stream.isClosed())
    removeStream(stream);
}
org.eclipse.jetty.spdy.apiPushInfo<init>

Javadoc

Creates a PushInfo instance with the given headers, the given close flag and with the given priority.

Popular methods of PushInfo

  • getHeaders
  • isClose
  • getTimeout
  • getUnit

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BoxLayout (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
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