Package com.xpn.xwiki.web
Class XWikiServletRequestStub.Builder
- java.lang.Object
-
- com.xpn.xwiki.web.XWikiServletRequestStub.Builder
-
- Enclosing class:
- XWikiServletRequestStub
public static class XWikiServletRequestStub.Builder extends Object
Builder forXWikiServletRequestStub
.- Since:
- 14.10
- Version:
- $Id: c090bf79e022a31ee16fd6fcea1bc5a1d5c54dde $
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XWikiServletRequestStub
build()
XWikiServletRequestStub.Builder
setContextPath(String contextPath)
XWikiServletRequestStub.Builder
setCookies(javax.servlet.http.Cookie[] cookies)
XWikiServletRequestStub.Builder
setHeaders(Map<String,List<String>> headers)
XWikiServletRequestStub.Builder
setRemoteAddr(String remoteAddr)
XWikiServletRequestStub.Builder
setRequestParameters(Map<String,String[]> requestParameters)
XWikiServletRequestStub.Builder
setRequestURL(URL requestURL)
-
-
-
Method Detail
-
setRequestURL
public XWikiServletRequestStub.Builder setRequestURL(URL requestURL)
- Parameters:
requestURL
- the request URL- Returns:
- this builder
-
setContextPath
public XWikiServletRequestStub.Builder setContextPath(String contextPath)
- Parameters:
contextPath
- the context path- Returns:
- this builder
-
setRequestParameters
public XWikiServletRequestStub.Builder setRequestParameters(Map<String,String[]> requestParameters)
- Parameters:
requestParameters
- the request parameters- Returns:
- this builder
-
setHeaders
public XWikiServletRequestStub.Builder setHeaders(Map<String,List<String>> headers)
- Parameters:
headers
- the request headers- Returns:
- this builder
-
setCookies
public XWikiServletRequestStub.Builder setCookies(javax.servlet.http.Cookie[] cookies)
- Parameters:
cookies
- the request cookies- Returns:
- this builder
-
setRemoteAddr
public XWikiServletRequestStub.Builder setRemoteAddr(String remoteAddr)
- Parameters:
remoteAddr
- the remote address- Returns:
- this builder
-
build
public XWikiServletRequestStub build()
- Returns:
- the built
XWikiServletRequestStub
instance
-
-