public static final class IncomingRequest.Builder extends Object
Modifier and Type | Method and Description |
---|---|
IncomingRequest.Builder |
addCookie(org.apache.http.cookie.Cookie cookie) |
IncomingRequest.Builder |
addHeader(String name,
String value) |
IncomingRequest |
build() |
IncomingRequest.Builder |
setContext(ContainerRequestContext context) |
IncomingRequest.Builder |
setContextPath(String contextPath)
A String to remove before mapping at the begining of the path, typically used for the context path in a
servlet engine.
|
IncomingRequest.Builder |
setEntity(org.apache.http.HttpEntity entity) |
IncomingRequest.Builder |
setRemoteAddr(String remoteAddr) |
IncomingRequest.Builder |
setRemoteUser(String remoteUser) |
IncomingRequest.Builder |
setSession(Session session) |
IncomingRequest.Builder |
setSessionId(String sessionId) |
IncomingRequest.Builder |
setUserPrincipal(Principal userPrincipal) |
public IncomingRequest build()
public IncomingRequest.Builder setContext(ContainerRequestContext context)
public IncomingRequest.Builder setRemoteAddr(String remoteAddr)
public IncomingRequest.Builder setRemoteUser(String remoteUser)
public IncomingRequest.Builder setSessionId(String sessionId)
public IncomingRequest.Builder setUserPrincipal(Principal userPrincipal)
public IncomingRequest.Builder addCookie(org.apache.http.cookie.Cookie cookie)
public IncomingRequest.Builder setSession(Session session)
public IncomingRequest.Builder addHeader(String name, String value)
public IncomingRequest.Builder setEntity(org.apache.http.HttpEntity entity)
public IncomingRequest.Builder setContextPath(String contextPath)
contextPath
- the context pathIncomingRequest.Builder
Copyright © 2008–2018. All rights reserved.