Class PushResource

java.lang.Object
org.glassfish.grizzly.spdy.PushResource

public final class PushResource extends Object
The class represents the data to be pushed from server to client. SPDY unidirectional stream will be used in order to push this data. The builder() has to be used in order to create a PushResource instance.
Author:
Alexey Stashok.
  • Method Details

    • builder

      public static PushResource.PushResourceBuilder builder()
    • getSource

      public Source getSource()
      Returns the Source to be pushed.
    • getPriority

      public int getPriority()
      Returns the SPDY stream priority to be used.
    • getStatusCode

      public org.glassfish.grizzly.http.util.HttpStatus getStatusCode()
      Returns the HttpStatus to be pushed along with the resource.
    • getContentType

      public String getContentType()
      Returns data content-type.
    • getHeaders

      public Map<String,String> getHeaders()
      Returns additional headers to be pushed. null value means no additional headers to push.