|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.remote.HTTPTransport
HTTP transport layer. The server is a servlet that can be installed into any compliant servlet container.
Inner classes inherited from class com.solarmetric.remote.Transport |
Transport.Channel, Transport.Server |
Constructor Summary | |
HTTPTransport()
|
Method Summary | |
void |
close()
|
com.solarmetric.remote.Channel |
getClientChannel()
Return a transport client channel to communicate with a remote server. |
String |
getDecorators()
Semicolon-separated list of StreamDecorator s. |
com.solarmetric.remote.Server |
getServer()
Return a transport server to listen for client connections. |
com.solarmetric.remote.Channel |
getServletChannel(HttpServletRequest req,
HttpServletResponse resp)
Channel built around an HttpServletRequest and
HttpServletResponse . |
String |
getURL()
The URL used to contact the remote server. |
void |
setDecorators(String decorators)
Semicolon-separated list of StreamDecorator s. |
void |
setURL(String url)
The URL used to contact the remote server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HTTPTransport()
Method Detail |
public String getURL()
public void setURL(String url)
public String getDecorators()
StreamDecorator
s.public void setDecorators(String decorators)
StreamDecorator
s.public com.solarmetric.remote.Server getServer() throws Exception
Transport
getServer
in interface Transport
public com.solarmetric.remote.Channel getClientChannel() throws Exception
Transport
getClientChannel
in interface Transport
public com.solarmetric.remote.Channel getServletChannel(HttpServletRequest req, HttpServletResponse resp)
HttpServletRequest
and
HttpServletResponse
. In your servlet's
HttpServlet#doPost
method, use this method to retrieve
a channel to pass to the CommandIO.execute(com.solarmetric.remote.Transport.Channel)
method. Then close
the channel.public void close()
close
in interface com.solarmetric.util.Closeable
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |