|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.solarmetric.remote.HTTPTransport
public class HTTPTransport
HTTP transport layer. The server is a servlet that can be installed into any compliant servlet container.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.solarmetric.remote.Transport |
---|
Transport.Channel, Transport.Server |
Constructor Summary | |
---|---|
HTTPTransport()
|
Method Summary | |
---|---|
void |
close()
|
Transport.Channel |
getClientChannel()
Return a transport client channel to communicate with a remote server. |
Transport.Server |
getServer()
Return a transport server to listen for client connections. |
Transport.Channel |
getServletChannel(HttpServletRequest req,
HttpServletResponse resp)
Channel built around an HttpServletRequest and
HttpServletResponse . |
String |
getURL()
The URL used to contact the remote server. |
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 Transport.Server getServer() throws Exception
Transport
getServer
in interface Transport
Exception
public Transport.Channel getClientChannel() throws Exception
Transport
getClientChannel
in interface Transport
Exception
public Transport.Channel getServletChannel(HttpServletRequest req, HttpServletResponse resp)
HttpServletRequest
and
HttpServletResponse
. In your servlet's
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 Closeable
|
Kodo 4.2.0. generated on July 28 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |