public class SolrRequestInfo extends Object
Modifier and Type | Field and Description |
---|---|
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(SolrQueryRequest req,
SolrQueryResponse rsp) |
Modifier and Type | Method and Description |
---|---|
void |
addCloseHook(Closeable hook) |
static void |
clearRequestInfo() |
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() |
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
public SolrRequestInfo(SolrQueryRequest req, SolrQueryResponse rsp)
public SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq, SolrQueryResponse rsp)
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 static ExecutorUtil.InheritableThreadLocalProvider getInheritableThreadLocalProvider()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.