Save This Page
Home » apache-solr-1.3.0 » org.apache.solr » servlet » [javadoc | source]
org.apache.solr.servlet
public class: SolrDispatchFilter [javadoc | source]
java.lang.Object
   org.apache.solr.servlet.SolrDispatchFilter

All Implemented Interfaces:
    Filter

This filter looks at the incoming URL maps them to handlers defined in solrconfig.xml
Field Summary
final  Logger log     
protected  SolrCore core     
protected  SolrRequestParsers parsers     
protected  boolean handleSelect     
protected  String pathPrefix     
protected  String abortErrorMessage     
Method from org.apache.solr.servlet.SolrDispatchFilter Summary:
destroy,   doFilter,   execute,   getPathPrefix,   init,   isHandleSelect,   sendError,   setHandleSelect,   setPathPrefix
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.solr.servlet.SolrDispatchFilter Detail:
 public  void destroy() 
 public  void doFilter(ServletRequest request,
    ServletResponse response,
    FilterChain chain) throws IOException, ServletException 
 protected  void execute(HttpServletRequest req,
    SolrRequestHandler handler,
    SolrQueryRequest sreq,
    SolrQueryResponse rsp) 
 public String getPathPrefix() 
 public  void init(FilterConfig config) throws ServletException 
 public boolean isHandleSelect() 
    Should the filter handle /select even if it is not mapped in solrconfig.xml This will use consistent error handling for /select?qt=xxx and /update/xml
 protected  void sendError(HttpServletResponse res,
    Throwable ex) throws IOException 
 public  void setHandleSelect(boolean handleSelect) 
 public  void setPathPrefix(String pathPrefix) 
    set the prefix for all paths. This is useful if you want to apply the filter to something other then *. For example, if web.xml specifies: SolrRequestFilter /xxx/* Make sure to set the PathPrefix to "/xxx" either with this function or in web.xml path-prefix /xxx