public interface PushBuilder
The push builder API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and Type Method Description PushBuilder
addHeader(java.lang.String name, java.lang.String value)
Add the header.java.lang.String
getHeader(java.lang.String name)
Get the header.java.util.Set<java.lang.String>
getHeaderNames()
Get the header names.java.lang.String
getMethod()
Get the HTTP method.java.lang.String
getPath()
Get the path.java.lang.String
getQueryString()
Get the query string.java.lang.String
getSessionId()
Get the session id.PushBuilder
method(java.lang.String method)
Set the HTTP method.PushBuilder
path(java.lang.String path)
Set the path.void
push()
Push.PushBuilder
queryString(java.lang.String queryString)
Set the query string.PushBuilder
removeHeader(java.lang.String name)
Remove the header.PushBuilder
sessionId(java.lang.String sessionId)
Set the session id.PushBuilder
setHeader(java.lang.String name, java.lang.String value)
Set the header.
-
Method Details
-
addHeader
Add the header.- Parameters:
name
- the name.value
- the value.- Returns:
- the push builder.
-
getHeader
java.lang.String getHeader(java.lang.String name)Get the header.- Parameters:
name
- the name.- Returns:
- the value.
-
getHeaderNames
java.util.Set<java.lang.String> getHeaderNames()Get the header names.- Returns:
- the header names.
-
getMethod
java.lang.String getMethod()Get the HTTP method.- Returns:
- the HTTP method.
-
getPath
java.lang.String getPath()Get the path.- Returns:
- the path.
-
getQueryString
java.lang.String getQueryString()Get the query string.- Returns:
- the query string.
-
getSessionId
java.lang.String getSessionId()Get the session id.- Returns:
- the session id.
-
method
Set the HTTP method.- Parameters:
method
- the method.- Returns:
- the push builder.
-
path
Set the path.- Parameters:
path
- the path.- Returns:
- the push builder.
-
push
void push()Push. -
queryString
Set the query string.- Parameters:
queryString
- the query string.- Returns:
- the push builder.
-
removeHeader
Remove the header.- Parameters:
name
- the name.- Returns:
- the push builder.
-
sessionId
Set the session id.- Parameters:
sessionId
- the session id.- Returns:
- the push builder.
-
setHeader
Set the header.- Parameters:
name
- the name.value
- the value.- Returns:
- the push builder.
-