Package org.atmosphere.cpr
Class AtmosphereRequestImpl.Builder
- java.lang.Object
-
- org.atmosphere.cpr.AtmosphereRequestImpl.Builder
-
- All Implemented Interfaces:
AtmosphereRequest.Builder
- Enclosing class:
- AtmosphereRequestImpl
public static final class AtmosphereRequestImpl.Builder extends java.lang.Object implements AtmosphereRequest.Builder
-
-
Field Summary
Fields Modifier and Type Field Description AtmosphereRequestImpl.Bodybody
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
body
public AtmosphereRequestImpl.Body body
-
-
Method Detail
-
destroyable
public AtmosphereRequestImpl.Builder destroyable(boolean destroyable)
- Specified by:
destroyablein interfaceAtmosphereRequest.Builder
-
headers
public AtmosphereRequestImpl.Builder headers(java.util.Map<java.lang.String,java.lang.String> headers)
- Specified by:
headersin interfaceAtmosphereRequest.Builder
-
cookies
public AtmosphereRequestImpl.Builder cookies(java.util.Set<jakarta.servlet.http.Cookie> cookies)
- Specified by:
cookiesin interfaceAtmosphereRequest.Builder
-
dispatchRequestAsynchronously
public AtmosphereRequestImpl.Builder dispatchRequestAsynchronously(boolean dispatchRequestAsynchronously)
- Specified by:
dispatchRequestAsynchronouslyin interfaceAtmosphereRequest.Builder
-
remoteAddr
public AtmosphereRequestImpl.Builder remoteAddr(java.lang.String remoteAddr)
- Specified by:
remoteAddrin interfaceAtmosphereRequest.Builder
-
remoteHost
public AtmosphereRequestImpl.Builder remoteHost(java.lang.String remoteHost)
- Specified by:
remoteHostin interfaceAtmosphereRequest.Builder
-
remotePort
public AtmosphereRequestImpl.Builder remotePort(int remotePort)
- Specified by:
remotePortin interfaceAtmosphereRequest.Builder
-
localAddr
public AtmosphereRequestImpl.Builder localAddr(java.lang.String localAddr)
- Specified by:
localAddrin interfaceAtmosphereRequest.Builder
-
localName
public AtmosphereRequestImpl.Builder localName(java.lang.String localName)
- Specified by:
localNamein interfaceAtmosphereRequest.Builder
-
localPort
public AtmosphereRequestImpl.Builder localPort(int localPort)
- Specified by:
localPortin interfaceAtmosphereRequest.Builder
-
remoteInetSocketAddress
public AtmosphereRequestImpl.Builder remoteInetSocketAddress(java.util.concurrent.Callable remoteAddr)
- Specified by:
remoteInetSocketAddressin interfaceAtmosphereRequest.Builder
-
localInetSocketAddress
public AtmosphereRequestImpl.Builder localInetSocketAddress(java.util.concurrent.Callable localAddr)
- Specified by:
localInetSocketAddressin interfaceAtmosphereRequest.Builder
-
attributes
public AtmosphereRequestImpl.Builder attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
- Specified by:
attributesin interfaceAtmosphereRequest.Builder
-
request
public AtmosphereRequestImpl.Builder request(jakarta.servlet.http.HttpServletRequest request)
- Specified by:
requestin interfaceAtmosphereRequest.Builder
-
servletPath
public AtmosphereRequestImpl.Builder servletPath(java.lang.String servletPath)
- Specified by:
servletPathin interfaceAtmosphereRequest.Builder
-
requestURI
public AtmosphereRequestImpl.Builder requestURI(java.lang.String requestURI)
- Specified by:
requestURIin interfaceAtmosphereRequest.Builder
-
requestURL
public AtmosphereRequestImpl.Builder requestURL(java.lang.String requestURL)
- Specified by:
requestURLin interfaceAtmosphereRequest.Builder
-
pathInfo
public AtmosphereRequestImpl.Builder pathInfo(java.lang.String pathInfo)
- Specified by:
pathInfoin interfaceAtmosphereRequest.Builder
-
queryString
public AtmosphereRequestImpl.Builder queryString(java.lang.String queryString)
- Specified by:
queryStringin interfaceAtmosphereRequest.Builder
-
body
public AtmosphereRequestImpl.Builder body(byte[] dataBytes)
- Specified by:
bodyin interfaceAtmosphereRequest.Builder
-
body
public AtmosphereRequestImpl.Builder body(byte[] dataBytes, int offset, int length)
- Specified by:
bodyin interfaceAtmosphereRequest.Builder
-
encoding
public AtmosphereRequestImpl.Builder encoding(java.lang.String encoding)
- Specified by:
encodingin interfaceAtmosphereRequest.Builder
-
method
public AtmosphereRequestImpl.Builder method(java.lang.String methodType)
- Specified by:
methodin interfaceAtmosphereRequest.Builder
-
contentType
public AtmosphereRequestImpl.Builder contentType(java.lang.String contentType)
- Specified by:
contentTypein interfaceAtmosphereRequest.Builder
-
contentLength
public AtmosphereRequestImpl.Builder contentLength(java.lang.Long contentLength)
- Specified by:
contentLengthin interfaceAtmosphereRequest.Builder
-
body
public AtmosphereRequestImpl.Builder body(java.lang.String data)
- Specified by:
bodyin interfaceAtmosphereRequest.Builder
-
inputStream
public AtmosphereRequestImpl.Builder inputStream(java.io.InputStream inputStream)
- Specified by:
inputStreamin interfaceAtmosphereRequest.Builder
-
reader
public AtmosphereRequestImpl.Builder reader(java.io.Reader reader)
- Specified by:
readerin interfaceAtmosphereRequest.Builder
-
build
public AtmosphereRequest build()
- Specified by:
buildin interfaceAtmosphereRequest.Builder
-
queryStrings
public AtmosphereRequestImpl.Builder queryStrings(java.util.Map<java.lang.String,java.lang.String[]> queryStrings)
- Specified by:
queryStringsin interfaceAtmosphereRequest.Builder
-
contextPath
public AtmosphereRequestImpl.Builder contextPath(java.lang.String contextPath)
- Specified by:
contextPathin interfaceAtmosphereRequest.Builder
-
serverName
public AtmosphereRequestImpl.Builder serverName(java.lang.String serverName)
- Specified by:
serverNamein interfaceAtmosphereRequest.Builder
-
serverPort
public AtmosphereRequestImpl.Builder serverPort(int serverPort)
- Specified by:
serverPortin interfaceAtmosphereRequest.Builder
-
session
public AtmosphereRequestImpl.Builder session(jakarta.servlet.http.HttpSession session)
- Specified by:
sessionin interfaceAtmosphereRequest.Builder
-
principal
public AtmosphereRequestImpl.Builder principal(java.security.Principal principal)
- Specified by:
principalin interfaceAtmosphereRequest.Builder
-
authType
public AtmosphereRequestImpl.Builder authType(java.lang.String authType)
- Specified by:
authTypein interfaceAtmosphereRequest.Builder
-
isSSecure
public AtmosphereRequestImpl.Builder isSSecure(boolean isSecure)
- Specified by:
isSSecurein interfaceAtmosphereRequest.Builder
-
locale
public AtmosphereRequestImpl.Builder locale(java.util.Locale locale)
- Specified by:
localein interfaceAtmosphereRequest.Builder
-
userPrincipal
public AtmosphereRequestImpl.Builder userPrincipal(java.security.Principal userPrincipal)
- Specified by:
userPrincipalin interfaceAtmosphereRequest.Builder
-
-