org.mule.impl.endpoint
Class MuleEndpointURI

java.lang.Object
  extended by org.mule.impl.endpoint.MuleEndpointURI
All Implemented Interfaces:
Serializable, UMOEndpointURI

public class MuleEndpointURI
extends Object
implements UMOEndpointURI

MuleEndpointURI is used to determine how a message is sent of received. The url defines the protocol, the endpointUri destination of the message and optionally the endpoint to use when dispatching the event. Mule urls take the form of - protocol://[host]:[port]/[provider]/endpointUri or protocol://[host]:[port]/endpointUri i.e. vm:///my.object or The protocol can be any of any connector registered with Mule. The endpoint name if specified must be the name of a register global endpoint The endpointUri can be any endpointUri recognised by the endpoint type.

See Also:
Serialized Form

Field Summary
protected static Log logger
          logger used by this class
 
Fields inherited from interface org.mule.umo.endpoint.UMOEndpointURI
PROPERTY_CONNECTOR_NAME, PROPERTY_CREATE_CONNECTOR, PROPERTY_ENDPOINT_NAME, PROPERTY_ENDPOINT_URI, PROPERTY_RESPONSE_TRANSFORMERS, PROPERTY_TRANSFORMERS
 
Constructor Summary
MuleEndpointURI(String uri)
           
MuleEndpointURI(String address, String endpointName, String connectorName, String transformers, String responseTransformers, int createConnector, Properties properties, URI uri)
           
MuleEndpointURI(UMOEndpointURI endpointUri)
           
MuleEndpointURI(UMOEndpointURI endpointUri, String filterAddress)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAddress()
           
 String getAuthority()
           
 String getConnectorName()
           
 int getCreateConnector()
           
 String getEndpointName()
           
 String getFilterAddress()
           
 String getFragment()
           
 String getFullScheme()
           
 String getHost()
           
 Properties getParams()
           
 String getPassword()
           
 String getPath()
           
 int getPort()
           
 String getQuery()
           
 String getRawAuthority()
           
 String getRawFragment()
           
 String getRawPath()
           
 String getRawQuery()
           
 String getRawSchemeSpecificPart()
           
 String getRawUserInfo()
           
 String getResourceInfo()
           
 String getResponseTransformers()
           
 String getScheme()
           
 String getSchemeMetaInfo()
           
 String getSchemeSpecificPart()
           
 String getTransformers()
           
 URI getUri()
           
 String getUserInfo()
           
 String getUsername()
           
 Properties getUserParams()
           
 int hashCode()
           
 boolean isAbsolute()
           
static boolean isMuleUri(String url)
           
 boolean isOpaque()
           
 URI normalize()
           
 URI parseServerAuthority()
           
 URI relativize(URI uri)
           
 URI resolve(String str)
           
 URI resolve(URI uri)
           
 void setEndpointName(String name)
           
 String toString()
           
protected  boolean validateUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
logger used by this class

Constructor Detail

MuleEndpointURI

public MuleEndpointURI(String address,
                       String endpointName,
                       String connectorName,
                       String transformers,
                       String responseTransformers,
                       int createConnector,
                       Properties properties,
                       URI uri)

MuleEndpointURI

public MuleEndpointURI(UMOEndpointURI endpointUri)

MuleEndpointURI

public MuleEndpointURI(UMOEndpointURI endpointUri,
                       String filterAddress)

MuleEndpointURI

public MuleEndpointURI(String uri)
                throws MalformedEndpointException
Throws:
MalformedEndpointException
Method Detail

isMuleUri

public static boolean isMuleUri(String url)

validateUrl

protected boolean validateUrl(String url)

getAddress

public String getAddress()
Specified by:
getAddress in interface UMOEndpointURI

getEndpointName

public String getEndpointName()
Specified by:
getEndpointName in interface UMOEndpointURI

getParams

public Properties getParams()
Specified by:
getParams in interface UMOEndpointURI

getUserParams

public Properties getUserParams()
Specified by:
getUserParams in interface UMOEndpointURI

parseServerAuthority

public URI parseServerAuthority()
                         throws URISyntaxException
Throws:
URISyntaxException

normalize

public URI normalize()

resolve

public URI resolve(URI uri)

resolve

public URI resolve(String str)

relativize

public URI relativize(URI uri)

getScheme

public String getScheme()
Specified by:
getScheme in interface UMOEndpointURI

getFullScheme

public String getFullScheme()
Specified by:
getFullScheme in interface UMOEndpointURI

isAbsolute

public boolean isAbsolute()

isOpaque

public boolean isOpaque()

getRawSchemeSpecificPart

public String getRawSchemeSpecificPart()

getSchemeSpecificPart

public String getSchemeSpecificPart()

getRawAuthority

public String getRawAuthority()

getAuthority

public String getAuthority()
Specified by:
getAuthority in interface UMOEndpointURI

getRawUserInfo

public String getRawUserInfo()

getUserInfo

public String getUserInfo()
Specified by:
getUserInfo in interface UMOEndpointURI

getHost

public String getHost()
Specified by:
getHost in interface UMOEndpointURI

getPort

public int getPort()
Specified by:
getPort in interface UMOEndpointURI

getRawPath

public String getRawPath()

getPath

public String getPath()
Specified by:
getPath in interface UMOEndpointURI

getRawQuery

public String getRawQuery()

getQuery

public String getQuery()
Specified by:
getQuery in interface UMOEndpointURI

getRawFragment

public String getRawFragment()

getFragment

public String getFragment()

toString

public String toString()
Overrides:
toString in class Object

getTransformers

public String getTransformers()
Specified by:
getTransformers in interface UMOEndpointURI

getCreateConnector

public int getCreateConnector()
Specified by:
getCreateConnector in interface UMOEndpointURI

getUri

public URI getUri()
Specified by:
getUri in interface UMOEndpointURI

getConnectorName

public String getConnectorName()
Specified by:
getConnectorName in interface UMOEndpointURI

getSchemeMetaInfo

public String getSchemeMetaInfo()
Specified by:
getSchemeMetaInfo in interface UMOEndpointURI

getResourceInfo

public String getResourceInfo()
Specified by:
getResourceInfo in interface UMOEndpointURI

getFilterAddress

public String getFilterAddress()
Specified by:
getFilterAddress in interface UMOEndpointURI

setEndpointName

public void setEndpointName(String name)
Specified by:
setEndpointName in interface UMOEndpointURI

getUsername

public String getUsername()
Specified by:
getUsername in interface UMOEndpointURI

getResponseTransformers

public String getResponseTransformers()
Specified by:
getResponseTransformers in interface UMOEndpointURI

getPassword

public String getPassword()
Specified by:
getPassword in interface UMOEndpointURI

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.