org.mule.endpoint
Class MuleEndpointURI
java.lang.Object
org.mule.endpoint.MuleEndpointURI
- All Implemented Interfaces:
- Serializable, EndpointURI, Initialisable
public class MuleEndpointURI
- extends Object
- implements EndpointURI
MuleEndpointURI
is used to determine how a message is sent or 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
The protocol can be any of any connector registered with Mule. The endpoint name if specified
must be the name of a registered global endpoint. The endpointUri can be any endpointUri
recognized by the endpoint type.
- See Also:
- Serialized Form
Field Summary |
protected static Log |
logger
logger used by this class |
Constructor Summary |
MuleEndpointURI(EndpointURI endpointUri)
|
MuleEndpointURI(EndpointURI endpointUri,
String filterAddress)
|
MuleEndpointURI(String uri,
MuleContext muleContext)
|
MuleEndpointURI(String uri,
String encodedUri,
MuleContext muleContext)
Creates but does not initialize the endpoint URI. |
MuleEndpointURI(String address,
String endpointName,
String connectorName,
String transformers,
String responseTransformers,
Properties properties,
URI uri,
MuleContext muleContext)
|
logger
protected static final Log logger
- logger used by this class
MuleEndpointURI
public MuleEndpointURI(String address,
String endpointName,
String connectorName,
String transformers,
String responseTransformers,
Properties properties,
URI uri,
MuleContext muleContext)
MuleEndpointURI
public MuleEndpointURI(EndpointURI endpointUri)
MuleEndpointURI
public MuleEndpointURI(EndpointURI endpointUri,
String filterAddress)
MuleEndpointURI
public MuleEndpointURI(String uri,
MuleContext muleContext)
throws EndpointException
- Throws:
EndpointException
MuleEndpointURI
public MuleEndpointURI(String uri,
String encodedUri,
MuleContext muleContext)
throws EndpointException
- Creates but does not initialize the endpoint URI. It is up to the caller
to call initialise() at some point.
- Throws:
EndpointException
isMuleUri
public static boolean isMuleUri(String url)
preprocessUri
protected String preprocessUri(String uriString)
throws MalformedEndpointException
- Throws:
MalformedEndpointException
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
validateUrl
protected boolean validateUrl(String url)
getAddress
public String getAddress()
- Specified by:
getAddress
in interface EndpointURI
getEndpointName
public String getEndpointName()
- Specified by:
getEndpointName
in interface EndpointURI
getParams
public Properties getParams()
- Specified by:
getParams
in interface EndpointURI
getUserParams
public Properties getUserParams()
- Description copied from interface:
EndpointURI
- A reduced version of getParams() - drops some system parameters
- Specified by:
getUserParams
in interface EndpointURI
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 EndpointURI
getFullScheme
public String getFullScheme()
- Specified by:
getFullScheme
in interface EndpointURI
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 EndpointURI
getRawUserInfo
public String getRawUserInfo()
getUserInfo
public String getUserInfo()
- Specified by:
getUserInfo
in interface EndpointURI
getHost
public String getHost()
- Specified by:
getHost
in interface EndpointURI
getPort
public int getPort()
- Specified by:
getPort
in interface EndpointURI
getRawPath
public String getRawPath()
getPath
public String getPath()
- Specified by:
getPath
in interface EndpointURI
getRawQuery
public String getRawQuery()
getQuery
public String getQuery()
- Specified by:
getQuery
in interface EndpointURI
getRawFragment
public String getRawFragment()
getFragment
public String getFragment()
toString
public String toString()
- Overrides:
toString
in class Object
createUriStringWithPasswordMasked
protected String createUriStringWithPasswordMasked()
getTransformers
public String getTransformers()
- Specified by:
getTransformers
in interface EndpointURI
getUri
public URI getUri()
- Specified by:
getUri
in interface EndpointURI
getConnectorName
public String getConnectorName()
- Specified by:
getConnectorName
in interface EndpointURI
getSchemeMetaInfo
public String getSchemeMetaInfo()
- Specified by:
getSchemeMetaInfo
in interface EndpointURI
getResourceInfo
public String getResourceInfo()
- Specified by:
getResourceInfo
in interface EndpointURI
getFilterAddress
public String getFilterAddress()
- Specified by:
getFilterAddress
in interface EndpointURI
getUser
public String getUser()
- Specified by:
getUser
in interface EndpointURI
getResponseTransformers
public String getResponseTransformers()
- Specified by:
getResponseTransformers
in interface EndpointURI
getPassword
public String getPassword()
- Specified by:
getPassword
in interface EndpointURI
getMuleContext
public MuleContext getMuleContext()
- Specified by:
getMuleContext
in interface EndpointURI
isDynamic
public boolean isDynamic()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.