hhms.soap
Class SOAPSession

java.lang.Object
  extended byhhms.soap.SOAPSession

public class SOAPSession
extends java.lang.Object

SOAPSession is the medium class for using Simple Object Access Protocol (SOAP) and FlexibleRepresentation. User application initiantes a TopicSession per Topic and must implementsmust implements a MessageListener interface to receive message.

The usage is:
  • new Connection(String host, int port, String userName, ErrorHandler object)
  • createSOAPSession();
  • setTopic(String topic) (setURI() for future implementation)
  • setSOAPMessageListener();
  • setEncodingStyle();
  • setReliableScheme();

    Title: SOAPSession

    Copyright: Copyright (c) 2004

    Company: CommunityGrids Labs at Indiana University

    See Also:
    MessageListener

    Constructor Summary
    SOAPSession(ConnHandler conn)
              Class Constructor
     
    Method Summary
     void getSOAPNegResponse(Message negResponse)
              Analysis SOAPNegResponse message to choose proper FlexibleRepresentation scheme
     void sendMessage(Message message)
              Publish message to the topic
     void sendSOAPNegotiation()
              Send FlexsibleRepresentation Negotiation Message
     void setEncodingStyle(java.lang.String encStyle)
              Set Encoding Style for Flexible Representation
     void setReliableScheme(java.lang.String rScheme)
              Set Reliable Messaging Scheme of FlexibleRepresentation
     void setSOAPMessageListener(MessageListener obj)
              Set this Object as a MessageListener
     void setSOAPTopic(java.lang.String topic)
              Set Publisher to the topic
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    SOAPSession

    public SOAPSession(ConnHandler conn)
    Class Constructor

    Parameters:
    conn - ConnHandler object that wraps ConnectionHandlers
    Method Detail

    sendSOAPNegotiation

    public void sendSOAPNegotiation()
                             throws FlexRepException
    Send FlexsibleRepresentation Negotiation Message

    Throws:
    FlexRepException

    getSOAPNegResponse

    public void getSOAPNegResponse(Message negResponse)
    Analysis SOAPNegResponse message to choose proper FlexibleRepresentation scheme

    Parameters:
    negResponse - Responded SOAP Negotiation Message

    sendMessage

    public void sendMessage(Message message)
    Publish message to the topic

    Parameters:
    message - a message to publish conformance with SOAP

    setSOAPMessageListener

    public void setSOAPMessageListener(MessageListener obj)
    Set this Object as a MessageListener

    Parameters:
    obj - MessageListener

    setSOAPTopic

    public void setSOAPTopic(java.lang.String topic)
    Set Publisher to the topic

    Parameters:
    topic - topic to publish messages

    setReliableScheme

    public void setReliableScheme(java.lang.String rScheme)
    Set Reliable Messaging Scheme of FlexibleRepresentation

    Parameters:
    rScheme - a Reliable Messaging Scheme

    setEncodingStyle

    public void setEncodingStyle(java.lang.String encStyle)
    Set Encoding Style for Flexible Representation