|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.resin.ServletProtocolEmbed
public class ServletProtocolEmbed
Embeddable version of a servlet remoting protocol, e.g. hessian or burlap.
The service class can be any Java class. Typically the class will have an
interface marked with a @javax.ejb.Remote annotation.
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/www/foo");
ServletMappingEmbed myService
= new ServletMappingEmbed("my-service", "/service", "qa.Myservice");
myService.setProtocol(new ServletProtocolEmbed("hessian"));
webApp.addServletMapping(myService);
resin.addWebApp(webApp);
| Constructor Summary | |
|---|---|
ServletProtocolEmbed()
Creates a new embedded servlet protocol |
|
ServletProtocolEmbed(java.lang.String type)
Creates a new servlet protocol |
|
| Method Summary | |
|---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a property. |
void |
setType(java.lang.String type)
Sets the protocol's name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletProtocolEmbed()
public ServletProtocolEmbed(java.lang.String type)
type - the protocol type, e.g. "hessian" or "burlap"| Method Detail |
|---|
public void setType(java.lang.String type)
public void addProperty(java.lang.String name,
java.lang.Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||