Interface WebScript
- All Known Implementing Classes:
AbstractWebScript,DeclarativeWebScript
public interface WebScript
Web Script
- Author:
- davidc
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(WebScriptRequest req, WebScriptResponse res) Execute the ServiceGets the Service DescriptionGets the Service Resourcesvoidinit(Container container, Description description) Initialise a WebScriptvoidsetURLModelFactory(URLModelFactory urlModelFactory)
-
Method Details
-
init
Initialise a WebScript- Parameters:
container- Parent containerdescription- Description of the WebScript provided by the registry
-
getDescription
Description getDescription()Gets the Service Description- Returns:
- service description
-
getResources
ResourceBundle getResources()Gets the Service Resources- Returns:
- ResourceBundle of services resources or null if none present
-
execute
Execute the Service- Parameters:
req- WebScriptRequest representing the request to this serviceres- WebScriptResponse encapsulating the result of this service- Throws:
IOException
-
setURLModelFactory
-