HttpServletRequest from which this builder was obtained. The push request
will be constructed on the following basis:
GET.path(String).HttpServletRequest#getRequestURL() plus, if present, the query string
from HttpServletRequest#getQueryString().
| Modifier and Type | Method and Description |
|---|---|
| public PushBuilder | |
| public String | |
| public Set | Returns: The current set of names of HTTP headers to be used the next timepush() is called.
|
| public String | Returns: The HTTP method to be used for future push requestsObtain the name of the HTTP method that will be used for push requests generated by future calls to
|
| public String | Returns: The path value that will be associated with the next push requestObtain the path that will be used for the push request that will be generated by the next call to |
| public String | Returns: The query string that will be appended to push requests.Obtain the query string that will be used for push requests generated by future calls to |
| public String | Returns: The session that will be used for push requests.Obtain the session ID that will be used for push requests generated by future calls to |
| public PushBuilder | |
| public PushBuilder | Returns: This builder instancePaths beginning with '/' are treated as absolute paths. All other paths are treated as relative to
the context path of the request used to create this builder instance. The path may include a
query string. path)Sets the URI path to be used for the push request. |
| public void | push()
Generates the push request and sends it to the client unless pushes are not available for some reason. |
| public PushBuilder | Returns: This builder instanceThe query string to use to generate push requests queryString)Specifies the query string to use in subsequent push requests generated by a call to |
| public PushBuilder | Returns: This builder instanceThe name of the header to remove name)Removes an HTTP header from the request. |
| public PushBuilder | |
| public PushBuilder |
| addHeader | back to summary |
|---|---|
| public PushBuilder addHeader(String name, String value) Adds an HTTP header to the request.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) Obtain a value for the given HTTP header. TODO Servlet 4.0 Clarify the behaviour of this method | |
| getHeaderNames | back to summary |
|---|---|
| public Set | |
| getMethod | back to summary |
|---|---|
| public String getMethod() Obtain the name of the HTTP method that will be used for push requests generated by future calls to
| |
| getPath | back to summary |
|---|---|
| public String getPath() Obtain the path that will be used for the push request that will be generated by the next call to
| |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Obtain the query string that will be used for push requests generated by future calls to
| |
| getSessionId | back to summary |
|---|---|
| public String getSessionId() Obtain the session ID that will be used for push requests generated by future calls to
| |
| method | back to summary |
|---|---|
| public PushBuilder method(String method) Specify the HTTP method to use for the push request.
| |
| path | back to summary |
|---|---|
| public PushBuilder path(String path) Sets the URI path to be used for the push request. This must be called before every call to
| |
| push | back to summary |
|---|---|
| public void push() Generates the push request and sends it to the client unless pushes are not available for some reason. After
calling this method the following fields are set to
| |
| queryString | back to summary |
|---|---|
| public PushBuilder queryString(String queryString) Specifies the query string to use in subsequent push requests generated by a call to
| |
| removeHeader | back to summary |
|---|---|
| public PushBuilder removeHeader(String name) Removes an HTTP header from the request.
| |
| sessionId | back to summary |
|---|---|
| public PushBuilder sessionId(String sessionId) Specifies the session ID to use in subsequent push requests generated by a call to
| |
| setHeader | back to summary |
|---|---|
| public PushBuilder setHeader(String name, String value) Sets an HTTP header on the request. Any existing headers of the same name are first remove.
| |