org.jboss.soa.esb.addressing
Class EPR

java.lang.Object
  extended by org.jboss.soa.esb.addressing.EPR
Direct Known Subclasses:
EmailEpr, FileEpr, HTTPEpr, JDBCEpr, JMSEpr

public class EPR
extends java.lang.Object

The Endpoint Reference class. All services (and clients) can be represented by an EPR, which is effectively an address. If using SOA principles then the ultimate recipient of the message should be addressed in a loosely-coupled manner: the service should multiplex/demultiplex work across "objects" based on the message content and the EPR should not address a specific "object".

Author:
marklittle

Constructor Summary
EPR()
          Create a new Endpoint Reference with a null address.
EPR(PortReference addr)
          Create a new Endpoint Reference with the specified address.
EPR(java.net.URI uri)
          Create a new Endpoint Reference with the specified address.
 
Method Summary
 void copy(EPR from)
          Copy the contents of the specified EPR into this instance.
 boolean equals(java.lang.Object obj)
           
 PortReference getAddr()
          Get the EPR address.
 void setAddr(PortReference uri)
          Override the address of this EPR.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EPR

public EPR()
Create a new Endpoint Reference with a null address.


EPR

public EPR(PortReference addr)
Create a new Endpoint Reference with the specified address.

Parameters:
addr - the specified address.

EPR

public EPR(java.net.URI uri)
Create a new Endpoint Reference with the specified address.

Parameters:
uri - the specified address.
Method Detail

setAddr

public void setAddr(PortReference uri)
Override the address of this EPR.

Parameters:
uri - the new address.

getAddr

public PortReference getAddr()
                      throws java.net.URISyntaxException
Get the EPR address.

Returns:
the address.
Throws:
java.net.URISyntaxException - thrown if the address is invalid.

copy

public void copy(EPR from)
Copy the contents of the specified EPR into this instance.

Parameters:
from - the instance to copy.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object