|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.addressing.EPR
public class EPR
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".
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
_logger
|
static java.lang.String |
EPR_TYPE
|
Constructor Summary | |
---|---|
|
EPR()
Create a new Endpoint Reference with a null address. |
|
EPR(EPR from)
Copy constructor. |
|
EPR(PortReference addr)
Create a new Endpoint Reference with the specified address. |
protected |
EPR(java.lang.String type)
Create a new Endpoint Reference with a null address. |
|
EPR(java.net.URI uri)
Create a new Endpoint Reference with the specified address. |
protected |
EPR(java.net.URI uri,
java.lang.String type)
Create a new Endpoint Reference with the specified address. |
Method Summary | |
---|---|
EPR |
copy()
Return a copy of this EPR. |
boolean |
equals(java.lang.Object obj)
|
PortReference |
getAddr()
Get the EPR address. |
java.net.URI |
getURI()
Get the URI address. |
int |
hashCode()
Return a hash code for this element. |
void |
setAddr(PortReference uri)
Override the address of this EPR. |
protected void |
setType(java.lang.String type)
Set the EPR type. |
void |
setURI(java.net.URI uri)
Set the URI for this endpoint. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger _logger
public static final java.lang.String EPR_TYPE
Constructor Detail |
---|
public EPR()
protected EPR(java.lang.String type)
public EPR(PortReference addr)
addr
- the specified address.public EPR(java.net.URI uri)
uri
- the specified address.protected EPR(java.net.URI uri, java.lang.String type)
uri
- the specified address.type
- The EPR typepublic EPR(EPR from)
from
- Method Detail |
---|
public void setAddr(PortReference uri)
uri
- the new address.public void setURI(java.net.URI uri)
uri
- the address.public java.net.URI getURI() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is invalid.public PortReference getAddr()
protected void setType(java.lang.String type)
type
- public EPR copy()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |