Package org.glassfish.grizzly.spdy
Class PushResource
java.lang.Object
org.glassfish.grizzly.spdy.PushResource
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPushResource builder to be used to createPushResourceinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns data content-type.Returns additional headers to be pushed.intReturns the SPDY stream priority to be used.Returns theSourceto be pushed.org.glassfish.grizzly.http.util.HttpStatusReturns theHttpStatusto be pushed along with the resource.
-
Method Details
-
builder
-
getSource
Returns theSourceto be pushed. -
getPriority
public int getPriority()Returns the SPDY stream priority to be used. -
getStatusCode
public org.glassfish.grizzly.http.util.HttpStatus getStatusCode()Returns theHttpStatusto be pushed along with the resource. -
getContentType
Returns data content-type. -
getHeaders
Returns additional headers to be pushed. null value means no additional headers to push.
-