public class SolrRequestInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrDispatchFilter.Action |
action |
protected List<Closeable> |
closeHooks |
protected javax.servlet.http.HttpServletRequest |
httpRequest |
protected Date |
now |
protected ResponseBuilder |
rb |
protected SolrQueryRequest |
req |
protected SolrQueryResponse |
rsp |
protected static ThreadLocal<SolrRequestInfo> |
threadLocal |
protected TimeZone |
tz |
Constructor and Description |
---|
SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq,
SolrQueryResponse rsp) |
SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq,
SolrQueryResponse rsp,
SolrDispatchFilter.Action action) |
SolrRequestInfo(SolrQueryRequest req,
SolrQueryResponse rsp) |
SolrRequestInfo(SolrQueryRequest req,
SolrQueryResponse rsp,
SolrDispatchFilter.Action action) |
Modifier and Type | Method and Description |
---|---|
void |
addCloseHook(Closeable hook) |
static void |
clearRequestInfo() |
SolrDispatchFilter.Action |
getAction() |
TimeZone |
getClientTimeZone()
The TimeZone specified by the request, or UTC if none was specified.
|
static ExecutorUtil.InheritableThreadLocalProvider |
getInheritableThreadLocalProvider() |
Date |
getNOW() |
SolrQueryRequest |
getReq() |
static SolrRequestInfo |
getRequestInfo() |
ResponseBuilder |
getResponseBuilder()
May return null if the request handler is not based on SearchHandler
|
SolrQueryResponse |
getRsp() |
Principal |
getUserPrincipal() |
void |
setAction(SolrDispatchFilter.Action action) |
static void |
setRequestInfo(SolrRequestInfo info) |
void |
setResponseBuilder(ResponseBuilder rb) |
protected static final ThreadLocal<SolrRequestInfo> threadLocal
protected SolrQueryRequest req
protected SolrQueryResponse rsp
protected Date now
protected javax.servlet.http.HttpServletRequest httpRequest
protected TimeZone tz
protected ResponseBuilder rb
protected SolrDispatchFilter.Action action
public SolrRequestInfo(SolrQueryRequest req, SolrQueryResponse rsp)
public SolrRequestInfo(SolrQueryRequest req, SolrQueryResponse rsp, SolrDispatchFilter.Action action)
public SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq, SolrQueryResponse rsp)
public SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq, SolrQueryResponse rsp, SolrDispatchFilter.Action action)
public static SolrRequestInfo getRequestInfo()
public static void setRequestInfo(SolrRequestInfo info)
public static void clearRequestInfo()
public Principal getUserPrincipal()
public Date getNOW()
public TimeZone getClientTimeZone()
public SolrQueryRequest getReq()
public SolrQueryResponse getRsp()
public ResponseBuilder getResponseBuilder()
public void setResponseBuilder(ResponseBuilder rb)
public void addCloseHook(Closeable hook)
public SolrDispatchFilter.Action getAction()
public void setAction(SolrDispatchFilter.Action action)
public static ExecutorUtil.InheritableThreadLocalProvider getInheritableThreadLocalProvider()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.