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 org.apache.commons.logging.Log |
logger
logger used by this class
|
PROPERTY_CONNECTOR_NAME, PROPERTY_ENDPOINT_NAME, PROPERTY_ENDPOINT_URI, PROPERTY_RESPONSE_TRANSFORMERS, PROPERTY_TRANSFORMERSPHASE_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 org.apache.commons.logging.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
EndpointExceptionpublic MuleEndpointURI(String uri, MuleContext muleContext, Properties serviceOverrides) throws EndpointException
EndpointExceptionpublic MuleEndpointURI(String uri, String encodedUri, MuleContext muleContext) throws EndpointException
EndpointExceptionpublic static boolean isMuleUri(String url)
protected String preprocessUri(String uriString) throws MalformedEndpointException
MalformedEndpointExceptionpublic void initialise()
throws InitialisationException
InitialisableInitialisationException 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 InitialisableInitialisationException - 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 EndpointURIpublic String getEndpointName()
getEndpointName in interface EndpointURIpublic Properties getParams()
getParams in interface EndpointURIpublic Properties getUserParams()
EndpointURIgetUserParams in interface EndpointURIpublic URI parseServerAuthority() throws URISyntaxException
URISyntaxExceptionpublic URI normalize()
public String getScheme()
getScheme in interface EndpointURIpublic String getFullScheme()
getFullScheme in interface EndpointURIpublic boolean isAbsolute()
public boolean isOpaque()
public String getRawSchemeSpecificPart()
public String getSchemeSpecificPart()
public String getRawAuthority()
public String getAuthority()
getAuthority in interface EndpointURIpublic String getRawUserInfo()
public String getUserInfo()
getUserInfo in interface EndpointURIpublic String getHost()
getHost in interface EndpointURIpublic int getPort()
getPort in interface EndpointURIpublic String getRawPath()
public String getPath()
getPath in interface EndpointURIpublic String getRawQuery()
public String getQuery()
getQuery in interface EndpointURIpublic String getRawFragment()
public String getFragment()
protected String createUriStringWithPasswordMasked()
public String getTransformers()
getTransformers in interface EndpointURIpublic URI getUri()
getUri in interface EndpointURIpublic String getConnectorName()
getConnectorName in interface EndpointURIpublic String getSchemeMetaInfo()
getSchemeMetaInfo in interface EndpointURIpublic String getResourceInfo()
getResourceInfo in interface EndpointURIpublic String getFilterAddress()
getFilterAddress in interface EndpointURIpublic String getUser()
getUser in interface EndpointURIpublic String getResponseTransformers()
getResponseTransformers in interface EndpointURIpublic String getPassword()
getPassword in interface EndpointURIpublic MuleContext getMuleContext()
getMuleContext in interface EndpointURIpublic boolean isDynamic()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.