public class ServletProtocolEmbed
extends java.lang.Object
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/resin/foo");
ServletMappingEmbed myService
= new ServletMappingEmbed("my-service", "/service", "qa.Myservice");
myService.setProtocol(new ServletProtocolEmbed("hessian"));
webApp.addServletMapping(myService);
resin.addWebApp(webApp);
Constructor and Description |
---|
ServletProtocolEmbed()
Creates a new embedded servlet protocol
|
ServletProtocolEmbed(java.lang.String uri)
Creates a new servlet protocol
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a property.
|
void |
setUri(java.lang.String uri)
Sets the protocol's uri
|