Package rife.engine
Class Gate
java.lang.Object
rife.engine.Gate
Main entry class into the RIFE2 web engine, used both by the servlet engine and
the out of container testing API.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Tears down the gate and the associatedSite.getSite()Retrieves theSiteof this gate.booleanhandleRequest(String gateUrl, String elementUrl, Request request, Response response) Handle the web request with the provided arguments.voidsetup(HierarchicalProperties properties, Site site) Set up the gate with the providedSite.
-
Constructor Details
-
Gate
public Gate()
-
-
Method Details
-
setup
Set up the gate with the providedSite.- Parameters:
properties- the parent hierarchical propertiessite- the site that will handle the requests- Since:
- 1.0
-
destroy
public void destroy()Tears down the gate and the associatedSite.- Since:
- 1.6.1
-
getSite
Retrieves theSiteof this gate.- Returns:
- this gate's site
- Since:
- 1.6.1
-
handleRequest
Handle the web request with the provided arguments.- Parameters:
gateUrl- the part of the URL that corresponds to the root of the gate, typically the webapp context URLelementUrl- the part of the URL after the gateUrl that will be resolved to find the execution elementrequest- the request instance of this web requestresponse- the response instance of this web request- Returns:
trueif the request was successfully handled; orfalseotherwise- Since:
- 1.0
-