xmlBlaster 2.2.0 API

org.xmlBlaster.util.qos.address
Class ServerRef

java.lang.Object
  extended by org.xmlBlaster.util.qos.address.ServerRef

public class ServerRef
extends java.lang.Object

Helper class holding serverRef address string and protocol string.

Holds example a CORBA "IOR:00012..." string

Author:
xmlBlaster@marcelruff.info

Field Summary
private  java.lang.String address
          The unique address, e.g.
private static java.lang.String ME
           
private  java.lang.String type
          The unique protocol type, e.g.
 
Constructor Summary
ServerRef(java.lang.String type)
           
ServerRef(java.lang.String type, java.lang.String address)
           
 
Method Summary
 boolean equals(ServerRef other)
           
 java.lang.String getAddress()
          Returns the address.
 java.lang.String getType()
          Returns the protocol type.
static void main(java.lang.String[] args)
          For testing: java org.xmlBlaster.util.qos.address.ServerRef
 void setAddress(java.lang.String address)
          Set the serverRef address, it should fit to the protocol-type.
 java.lang.String toXml()
          Dump state of this object into a XML ASCII string.
 java.lang.String toXml(java.lang.String extraOffset)
          Dump state of this object into a XML ASCII string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

private static final java.lang.String ME
See Also:
Constant Field Values

address

private java.lang.String address
The unique address, e.g. the CORBA IOR string


type

private java.lang.String type
The unique protocol type, e.g. "IOR"

Constructor Detail

ServerRef

public ServerRef(java.lang.String type)
Parameters:
type - The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"

ServerRef

public ServerRef(java.lang.String type,
                 java.lang.String address)
Parameters:
type - The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"
address - A serverRef address for your client, suitable to the protocol for email e.g. "xmlblaster@xmlBlaster.org"
Method Detail

setAddress

public final void setAddress(java.lang.String address)
Set the serverRef address, it should fit to the protocol-type.

Parameters:
address - The serverRef address, e.g. "et@mars.univers"

getAddress

public final java.lang.String getAddress()
Returns the address.

Returns:
e.g. "IOR:00001100022...."

getType

public final java.lang.String getType()
Returns the protocol type.

Returns:
e.g. "EMAIL" or "IOR"

equals

public final boolean equals(ServerRef other)

toXml

public final java.lang.String toXml()
Dump state of this object into a XML ASCII string.


toXml

public final java.lang.String toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string.

Parameters:
extraOffset - indenting of tags for nice output
Returns:
The xml representation

main

public static void main(java.lang.String[] args)
For testing: java org.xmlBlaster.util.qos.address.ServerRef


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.