|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.resin.ResinEmbed
public class ResinEmbed
Embeddable version of the Resin server.
ResinEmbed resin = new ResinEmbed();
HttpEmbed http = new HttpEmbed(8080);
resin.addPort(http);
WebAppEmbed webApp = new WebAppEmbed("/foo", "/home/ferg/ws/foo");
resin.addWebApp(webApp);
resin.start();
resin.join();
| Constructor Summary | |
|---|---|
ResinEmbed()
Creates a new resin server. |
|
| Method Summary | |
|---|---|
void |
addBean(BeanEmbed bean)
Adds a web bean. |
void |
addPort(PortEmbed port)
Adds a port to the server, e.g. |
void |
addWebApp(WebAppEmbed webApp)
Adds a web-app to the server. |
void |
destroy()
Destroys the embedded server |
protected void |
finalize()
|
void |
join()
Waits for the Resin process to exit. |
static void |
main(java.lang.String[] args)
Basic embedding server. |
java.lang.String |
request(java.lang.String httpRequest)
Sends a HTTP request to the embedded server for testing. |
void |
request(java.lang.String httpRequest,
java.io.OutputStream os)
Sends a HTTP request to the embedded server for testing. |
void |
setPorts(PortEmbed[] ports)
Sets a list of ports. |
void |
setWebApps(WebAppEmbed[] webApps)
Sets a list of webapps |
void |
start()
Starts the embedded server |
void |
stop()
Stops the embedded server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResinEmbed()
| Method Detail |
|---|
public void addPort(PortEmbed port)
port - the embedded port to add to the serverpublic void setPorts(PortEmbed[] ports)
public void addWebApp(WebAppEmbed webApp)
public void setWebApps(WebAppEmbed[] webApps)
public void addBean(BeanEmbed bean)
public void start()
public void stop()
public void join()
public void destroy()
public void request(java.lang.String httpRequest,
java.io.OutputStream os)
throws java.lang.Exception
httpRequest - HTTP request string, e.g. "GET /test.jsp"os - output stream to receive the request
java.lang.Exception
public java.lang.String request(java.lang.String httpRequest)
throws java.lang.Exception
httpRequest - HTTP request string, e.g. "GET /test.jsp"
java.lang.Exception
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||