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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Tears down the gate and the associatedSite
.getSite()
Retrieves theSite
of this gate.boolean
handleRequest
(String gateUrl, String elementUrl, Request request, Response response) Handle the web request with the provided arguments.void
setup
(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 theSite
of 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:
true
if the request was successfully handled; orfalse
otherwise- Since:
- 1.0
-