org.sblim.cimclient.discovery
Class WBEMProtocol

java.lang.Object
  extended by org.sblim.cimclient.discovery.WBEMProtocol

public class WBEMProtocol
extends Object

Class WBEMProtocol encapsulates a transport/presentation protocol pair. E.g. "HTTPS/CIM-XML"

Since:
2.0.2
Invariants:
iTransport != null
iPresentation != null

Constructor Summary
WBEMProtocol(String pTransport, String pPresentation)
          Ctor.
 
Method Summary
 boolean equals(Object pObj)
           
 String getPresentation()
          Returns the presentation protocol (e.g.
 String getTransport()
          Returns transport protocol (e.g.
 int hashCode()
           
 void setPresentation(String pPresentation)
          Sets the presentation protocol
 void setTransport(String pTransport)
          Sets the transport protocol
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WBEMProtocol

public WBEMProtocol(String pTransport,
                    String pPresentation)
Ctor.

Parameters:
pTransport - The transport protocol (e.g. HTTP, HTTPS, RMI)
pPresentation - The presentation protocol (e.g. CIM-XML)
Method Detail

getPresentation

public String getPresentation()
Returns the presentation protocol (e.g. CIM-XML)

Returns:
The value.

setPresentation

public void setPresentation(String pPresentation)
Sets the presentation protocol

Parameters:
pPresentation - The new value (e.g. CIM-XML)

getTransport

public String getTransport()
Returns transport protocol (e.g. HTTP)

Returns:
The value.

setTransport

public void setTransport(String pTransport)
Sets the transport protocol

Parameters:
pTransport - The new value (e.g. HTTP).

equals

public boolean equals(Object pObj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.