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
Modifier and Type | Field and Description |
---|---|
protected static Log |
logger
logger used by this class
|
PROPERTY_CONNECTOR_NAME, PROPERTY_ENDPOINT_NAME, PROPERTY_ENDPOINT_URI, PROPERTY_RESPONSE_TRANSFORMERS, PROPERTY_TRANSFORMERS
PHASE_NAME
Constructor and Description |
---|
MuleEndpointURI(EndpointURI endpointUri) |
MuleEndpointURI(EndpointURI endpointUri,
String filterAddress) |
MuleEndpointURI(String uri,
MuleContext muleContext) |
MuleEndpointURI(String uri,
MuleContext muleContext,
Properties serviceOverrides) |
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) |
protected static final Log logger
public MuleEndpointURI(String address, String endpointName, String connectorName, String transformers, String responseTransformers, Properties properties, URI uri, MuleContext muleContext)
public MuleEndpointURI(EndpointURI endpointUri)
public MuleEndpointURI(EndpointURI endpointUri, String filterAddress)
public MuleEndpointURI(String uri, MuleContext muleContext) throws EndpointException
EndpointException
public MuleEndpointURI(String uri, MuleContext muleContext, Properties serviceOverrides) throws EndpointException
EndpointException
public MuleEndpointURI(String uri, String encodedUri, MuleContext muleContext) throws EndpointException
EndpointException
public static boolean isMuleUri(String url)
protected String preprocessUri(String uriString) throws MalformedEndpointException
MalformedEndpointException
public void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected boolean validateUrl(String url)
public String getAddress()
getAddress
in interface EndpointURI
public String getEndpointName()
getEndpointName
in interface EndpointURI
public Properties getParams()
getParams
in interface EndpointURI
public Properties getUserParams()
EndpointURI
getUserParams
in interface EndpointURI
public URI parseServerAuthority() throws URISyntaxException
URISyntaxException
public URI normalize()
public String getScheme()
getScheme
in interface EndpointURI
public String getFullScheme()
getFullScheme
in interface EndpointURI
public boolean isAbsolute()
public boolean isOpaque()
public String getRawSchemeSpecificPart()
public String getSchemeSpecificPart()
public String getRawAuthority()
public String getAuthority()
getAuthority
in interface EndpointURI
public String getRawUserInfo()
public String getUserInfo()
getUserInfo
in interface EndpointURI
public String getHost()
getHost
in interface EndpointURI
public int getPort()
getPort
in interface EndpointURI
public String getRawPath()
public String getPath()
getPath
in interface EndpointURI
public String getRawQuery()
public String getQuery()
getQuery
in interface EndpointURI
public String getRawFragment()
public String getFragment()
protected String createUriStringWithPasswordMasked()
public String getTransformers()
getTransformers
in interface EndpointURI
public URI getUri()
getUri
in interface EndpointURI
public String getConnectorName()
getConnectorName
in interface EndpointURI
public String getSchemeMetaInfo()
getSchemeMetaInfo
in interface EndpointURI
public String getResourceInfo()
getResourceInfo
in interface EndpointURI
public String getFilterAddress()
getFilterAddress
in interface EndpointURI
public String getUser()
getUser
in interface EndpointURI
public String getResponseTransformers()
getResponseTransformers
in interface EndpointURI
public String getPassword()
getPassword
in interface EndpointURI
public MuleContext getMuleContext()
getMuleContext
in interface EndpointURI
public boolean isDynamic()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.