Class CompressedHeadersBuilder
java.lang.Object
org.glassfish.grizzly.spdy.frames.CompressedHeadersBuilder
- Author:
- Alexey Stashok
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.grizzly.Bufferfinal CompressedHeadersBuildercontentLength(long contentLength) Set the content-length of this header.final CompressedHeadersBuildercontentType(String contentType) Set the content-type of this header.static DeflaterUtility method, which helps to create SpdyDeflaterwith predefined Spdy compression dictionary.final CompressedHeadersBuilderAdd the SPDY/HTTP mime header.final CompressedHeadersBuilderAdd the SPDY/HTTP mime header.final CompressedHeadersBuilderSet the the hostport (See RFC1738 [RFC1738]) portion of the URL for this request header (e.g.final CompressedHeadersBuilderSet the the HTTP method for this request.final CompressedHeadersBuildermethod(org.glassfish.grizzly.http.Method method) Set the the HTTP method for this request.static CompressedHeadersBuilderReturns theCompressedHeadersBuilderinstance.final CompressedHeadersBuilderSet the url-path for required url with "/" prefixed.final CompressedHeadersBuilderSet the scheme portion of the URL for this request header (e.g.final CompressedHeadersBuilderstatus(int status) Set the HTTP response status code (e.g.final CompressedHeadersBuilderSet the HTTP response status code (e.g.final CompressedHeadersBuilderstatus(org.glassfish.grizzly.http.util.HttpStatus status) Set the HTTP response status code (e.g.final CompressedHeadersBuilderSet the the HTTP version of this request (e.g.final CompressedHeadersBuilderversion(org.glassfish.grizzly.http.Protocol version) Set the the HTTP version of this request (e.g.
-
Method Details
-
createSpdyDeflater
Utility method, which helps to create SpdyDeflaterwith predefined Spdy compression dictionary. -
newInstance
Returns theCompressedHeadersBuilderinstance. -
contentLength
Set the content-length of this header. Applicable only in case of fixed-length HTTP message.- Parameters:
contentLength- the content-length of thisHttpPacket. Applicable only in case of fixed-length HTTP message.
-
contentType
Set the content-type of this header.- Parameters:
contentType- the content-type of thisHttpPacket.
-
method
Set the the HTTP method for this request. (e.g. "GET", "POST", "HEAD", etc).- Parameters:
method- the method of this header.
-
method
Set the the HTTP method for this request. (e.g. "GET", "POST", "HEAD", etc).- Parameters:
method- the method of this header.
-
path
Set the url-path for required url with "/" prefixed. (See RFC1738 [RFC1738]). For example, for "http://www.google.com/search?q=dogs" the path would be "/search?q=dogs".- Parameters:
path- the path of this header.
-
version
Set the the HTTP version of this request (e.g. "HTTP/1.1").- Parameters:
version- the HTTP version of this header.
-
version
Set the the HTTP version of this request (e.g. "HTTP/1.1").- Parameters:
version- the HTTP version of this header.
-
host
Set the the hostport (See RFC1738 [RFC1738]) portion of the URL for this request header (e.g. "www.google.com:1234"). This header is the same as the HTTP 'Host' header.- Parameters:
host- the hostport.
-
scheme
Set the scheme portion of the URL for this request header (e.g. "https").- Parameters:
path- the path of this header.
-
status
Set the HTTP response status code (e.g. 200 or 404).- Parameters:
path- the path of this header.
-
status
Set the HTTP response status code (e.g. "200" or "200 OK")- Parameters:
path- the path of this header.
-
status
Set the HTTP response status code (e.g. "200" or "200 OK")- Parameters:
path- the path of this header.
-
header
Add the SPDY/HTTP mime header.- Parameters:
name- the mime header name.value- the mime header value.
-
header
public final CompressedHeadersBuilder header(org.glassfish.grizzly.http.util.Header header, String value) Add the SPDY/HTTP mime header.- Parameters:
header- the mimeHeader.value- the mime header value.
-
build
- Throws:
IOException
-