Tabnine Logo
PushInfo
Code IndexAdd Tabnine to your IDE (free)

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

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

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-core

public PushSynInfo(int associatedStreamId, PushInfo pushInfo){
  super(pushInfo.getTimeout(), pushInfo.getUnit(), pushInfo.getHeaders(), pushInfo.isClose(), (byte)0);
  this.associatedStreamId = associatedStreamId;
}

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

/**
 * @return the close flag as integer
 * @see #FLAG_CLOSE
 */
public byte getFlags()
{
  return isClose() ? FLAG_CLOSE : 0;
}
origin: org.eclipse.jetty.spdy/spdy-core

@Override
public Stream push(PushInfo pushInfo) throws InterruptedException, ExecutionException, TimeoutException
{
  FuturePromise<Stream> result = new FuturePromise<>();
  push(pushInfo, result);
  if (pushInfo.getTimeout() > 0)
    return result.get(pushInfo.getTimeout(), pushInfo.getUnit());
  else
    return result.get();
}
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

Javadoc

A container for PUSH_SYN_STREAM frames metadata and data.

Most used methods

  • <init>
    Creates a PushInfo instance with the given headers and the given close flag, not unidirectional, wit
  • getHeaders
  • isClose
  • getTimeout
  • getUnit

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JTable (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now