Package org.apache.solr.request
Class SolrRequestInfo
- java.lang.Object
-
- org.apache.solr.request.SolrRequestInfo
-
public class SolrRequestInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq, SolrQueryResponse rsp)
SolrRequestInfo(SolrQueryRequest req, SolrQueryResponse rsp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 SearchHandlerSolrQueryResponse
getRsp()
Principal
getUserPrincipal()
static void
setRequestInfo(SolrRequestInfo info)
void
setResponseBuilder(ResponseBuilder rb)
-
-
-
Field Detail
-
threadLocal
protected static final ThreadLocal<SolrRequestInfo> threadLocal
-
req
protected SolrQueryRequest req
-
rsp
protected SolrQueryResponse rsp
-
now
protected Date now
-
httpRequest
protected javax.servlet.http.HttpServletRequest httpRequest
-
tz
protected TimeZone tz
-
rb
protected ResponseBuilder rb
-
-
Constructor Detail
-
SolrRequestInfo
public SolrRequestInfo(SolrQueryRequest req, SolrQueryResponse rsp)
-
SolrRequestInfo
public SolrRequestInfo(javax.servlet.http.HttpServletRequest httpReq, SolrQueryResponse rsp)
-
-
Method Detail
-
getRequestInfo
public static SolrRequestInfo getRequestInfo()
-
setRequestInfo
public static void setRequestInfo(SolrRequestInfo info)
-
clearRequestInfo
public static void clearRequestInfo()
-
getUserPrincipal
public Principal getUserPrincipal()
-
getNOW
public Date getNOW()
-
getClientTimeZone
public TimeZone getClientTimeZone()
The TimeZone specified by the request, or UTC if none was specified.
-
getReq
public SolrQueryRequest getReq()
-
getRsp
public SolrQueryResponse getRsp()
-
getResponseBuilder
public ResponseBuilder getResponseBuilder()
May return null if the request handler is not based on SearchHandler
-
setResponseBuilder
public void setResponseBuilder(ResponseBuilder rb)
-
addCloseHook
public void addCloseHook(Closeable hook)
-
getInheritableThreadLocalProvider
public static ExecutorUtil.InheritableThreadLocalProvider getInheritableThreadLocalProvider()
-
-