org.eclipse.smila.http.server.util
Interface RequestHandler
- All Superinterfaces:
- HttpHandler
- All Known Implementing Classes:
- ADeltaHandler, AgentControlHandler, AgentHandler, AgentsHandler, AJobManagerHandler, ARequestHandler, AStoreHandler, AVisitedHandler, BaseConnectivityHandler, BucketHandler, BucketsHandler, BulkbuilderBurstHandler, BulkbuilderHandler, CrawlerControlHandler, CrawlerHandler, CrawlersHandler, DataObjectTypeHandler, DataObjectTypesHandler, DebugHandler, DeltaAdminHandler, DeltaSourceHandler, ImportingHandler, InitialTaskHandler, JobHandler, JobManagerHandler, JobRunControlHandler, JobRunHandler, JobsHandler, JsonBulkRequestHandler, JsonRequestHandler, ObjectStoreServiceHandler, PipeletHandler, PipeletsHandler, PipelineHandler, PipelineProcessHandler, PipelinesHandler, SolrAdministrationHandler, StateHandler, StoreAdminHandler, StoreObjectHandler, TaskHandler, TaskPathStateHandler, TaskStateHandler, TaskTypeStateHandler, VisitedLinksHandler, VisitedSourceHandler, WorkerHandler, WorkersHandler, WorkerTaskHandler, WorkflowHandler, WorkflowRunHandler, WorkflowsHandler, ZooKeeperAdminHandler
public interface RequestHandler
- extends HttpHandler
Interface RequestHandler for handlers of HTTP requests to URI that share a common root context (e.g. /SMILA). These
are not handled by Jetty directly but by a RequestDispatcher where RequestHandlers can be registered.
- Author:
- jschumacher
Method Summary |
java.lang.String |
getUriPattern()
Return the URI pattern below the root context path that this RequestHandler serves. |
boolean |
matches(java.lang.String requestUri)
Checks if the URI pattern matches the given requestUri. |
getUriPattern
java.lang.String getUriPattern()
- Return the URI pattern below the root context path that this RequestHandler serves.
- Returns:
- the URI pattern (a regular expression)
matches
boolean matches(java.lang.String requestUri)
- Checks if the URI pattern matches the given requestUri. If true the RequestHandler can handle requests to this URI.
- Parameters:
requestUri
- a requestUri
- Returns:
- true if the URI pattern matches, false otherwise