oracle.syndication.server.transport
Interface OSSTransProtocolManager

All Known Implementing Classes:
HttpTransProtocolManager

public abstract interface OSSTransProtocolManager

This interface isolates the behavior for transport for all the syndication server's messages between the subscriber and the syndicator.

Since:
9.0.0.0.0 Beta

Method Summary
TypeMethod
 void destroy()
          This allows clean up of the transport layer.
 boolean isPushing()
          Tells if we are pushing
 OSSRequest readRequest()
          This method reads a request from a transport layer
 OSSResponse sendRequest(HTTPClient.URI destURI, OSSRequest req)
          This method is used for the syndication entity ( Server: PUSH or Broadcasting; Client: Send request )
 void writeResponse(OSSResponse resp)
          This method represents the functionality to write to a sink whatever messages are to be written.
 

Method Detail

writeResponse

public void writeResponse(OSSResponse resp)
                   throws java.io.IOException
This method represents the functionality to write to a sink whatever messages are to be written. This sink is what represents the subscriber and this method will be used by the syndicator

readRequest

public OSSRequest readRequest()
This method reads a request from a transport layer

isPushing

public boolean isPushing()
Tells if we are pushing

destroy

public void destroy()
             throws java.io.IOException
This allows clean up of the transport layer.

sendRequest

public OSSResponse sendRequest(HTTPClient.URI destURI,
                               OSSRequest req)
                        throws OSSException
This method is used for the syndication entity ( Server: PUSH or Broadcasting; Client: Send request )
Parameters:
destURI - The destination for sending the request
req - The request package for delivery