public static class PushResource.PushResourceBuilder extends Object
PushResource
instance.Constructor and Description |
---|
PushResourceBuilder() |
Modifier and Type | Method and Description |
---|---|
PushResource |
build()
Returns the
PushResource instance. |
PushResource.PushResourceBuilder |
contentType(String contentType)
Sets the push data content-type.
|
PushResource.PushResourceBuilder |
header(Header name,
String value)
Adds additional header to be pushed.
|
PushResource.PushResourceBuilder |
header(String name,
String value)
Adds additional header to be pushed.
|
PushResource.PushResourceBuilder |
priority(int priority)
Sets the SPDY stream priority to be used.
|
PushResource.PushResourceBuilder |
source(Source source)
Sets the
Source to be pushed. |
PushResource.PushResourceBuilder |
statusCode(HttpStatus statusCode)
Sets the
HttpStatus to be pushed along with the resource. |
PushResource.PushResourceBuilder |
statusCode(int statusCode)
Sets the HTTP status to be pushed along with the resource.
|
PushResource.PushResourceBuilder |
statusCode(int statusCode,
String reasonPhrase)
Sets the HTTP status and the reason phrase to be pushed along with the resource.
|
public PushResource.PushResourceBuilder source(Source source)
Source
to be pushed.source
- the Source
to be pushed.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder priority(int priority)
priority
- the SPDY stream priority to be used.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder statusCode(HttpStatus statusCode)
HttpStatus
to be pushed along with the resource.statusCode
- the HttpStatus
to be pushed along with the resource.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder statusCode(int statusCode)
statusCode
- the HTTP status to be pushed along with the resource.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder statusCode(int statusCode, String reasonPhrase)
statusCode
- the HTTP status to be pushed along with the resource.reasonPhrase
- the HTTP status reason phrase to be pushed along with the resource.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder contentType(String contentType)
contentType
- the push data content-type.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder header(String name, String value)
name
- the header name.value
- the header value.PushResource.PushResourceBuilder
.public PushResource.PushResourceBuilder header(Header name, String value)
name
- the header name.value
- the header value.PushResource.PushResourceBuilder
.public PushResource build()
PushResource
instance.Copyright © 2015 Oracle Corporation. All rights reserved.