Interface WebScript
-
- All Known Implementing Classes:
AbstractWebScript,DeclarativeWebScript
public interface WebScriptWeb Script- Author:
- davidc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(WebScriptRequest req, WebScriptResponse res)Execute the ServiceDescriptiongetDescription()Gets the Service Descriptionjava.util.ResourceBundlegetResources()Gets the Service Resourcesvoidinit(Container container, Description description)Initialise a WebScriptvoidsetURLModelFactory(URLModelFactory urlModelFactory)
-
-
-
Method Detail
-
init
void init(Container container, Description description)
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
java.util.ResourceBundle getResources()
Gets the Service Resources- Returns:
- ResourceBundle of services resources or null if none present
-
execute
void execute(WebScriptRequest req, WebScriptResponse res) throws java.io.IOException
Execute the Service- Parameters:
req- WebScriptRequest representing the request to this serviceres- WebScriptResponse encapsulating the result of this service- Throws:
java.io.IOException
-
setURLModelFactory
void setURLModelFactory(URLModelFactory urlModelFactory)
-
-