Kodo 4.2.0. (DEPRECATED)

com.solarmetric.remote
Class HTTPTransport

java.lang.Object
  extended by com.solarmetric.remote.HTTPTransport
All Implemented Interfaces:
Transport, Closeable

public class HTTPTransport
extends Object
implements Transport

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

HTTPTransport

public HTTPTransport()
Method Detail

getURL

public String getURL()
The URL used to contact the remote server.


setURL

public void setURL(String url)
The URL used to contact the remote server.


getServer

public Transport.Server getServer()
                           throws Exception
Description copied from interface: Transport
Return a transport server to listen for client connections. Only one server will ever be requested per transport instance.

Specified by:
getServer in interface Transport
Throws:
Exception

getClientChannel

public Transport.Channel getClientChannel()
                                   throws Exception
Description copied from interface: Transport
Return a transport client channel to communicate with a remote server.

Specified by:
getClientChannel in interface Transport
Throws:
Exception

getServletChannel

public Transport.Channel getServletChannel(HttpServletRequest req,
                                           HttpServletResponse resp)
Channel built around an 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.


close

public void close()
Specified by:
close in interface Closeable

Kodo 4.2.0. (DEPRECATED)

Copyright 2011 Oracle, Inc. All Rights Reserved.

This documentation is deprecated and will be removed in the next release of WebLogic Server.


Oracle Fusion Middleware Oracle Kodo 4.2.0 API Reference (DEPRECATED)
12c Release 1 (12.1.1)
Part Number E24400_01