|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.UriEndpointConfiguration
public class UriEndpointConfiguration
Implements EndpointConfiguration
for Endpoint implementations
which are annotated with UriEndpoint
to use the UriParam
and UriParams
annotations
to denote its parameters which can be specified via URI query parameters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.camel.EndpointConfiguration |
---|
EndpointConfiguration.UriFormat |
Field Summary |
---|
Fields inherited from interface org.apache.camel.EndpointConfiguration |
---|
URI_AUTHORITY, URI_FRAGMENT, URI_HOST, URI_PATH, URI_PORT, URI_QUERY, URI_SCHEME, URI_SCHEME_SPECIFIC_PART, URI_USER_INFO |
Constructor Summary | |
---|---|
UriEndpointConfiguration(CamelContext camelContext,
Endpoint endpoint,
String uriText)
|
Method Summary | ||
---|---|---|
CamelContext |
getCamelContext()
|
|
Class<? extends Endpoint> |
getEndpointClass()
|
|
|
getParameter(String name)
Gets the value of a particular parameter. |
|
ParameterConfiguration |
getPropertyConfiguration(String name)
Returns the property configuration for the given property name or null if it does not exist |
|
SortedMap<String,ParameterConfiguration> |
getPropertyConfigurationMap()
Returns the sorted map of all the property names to their ParameterConfiguration objects |
|
URI |
getURI()
Returns the URI configuration of an Endpoint . |
|
|
setParameter(String name,
T value)
Sets the value of a particular parameter. |
|
void |
setURI(URI uri)
|
|
String |
toUriString(EndpointConfiguration.UriFormat format)
Returns the formatted configuration string of an Endpoint . |
|
protected void |
warnMissingUriParamOnProperty(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UriEndpointConfiguration(CamelContext camelContext, Endpoint endpoint, String uriText)
Method Detail |
---|
public URI getURI()
EndpointConfiguration
Endpoint
.
getURI
in interface EndpointConfiguration
public void setURI(URI uri)
public <T> T getParameter(String name) throws RuntimeCamelException
EndpointConfiguration
getParameter
in interface EndpointConfiguration
name
- the parameter name
RuntimeCamelException
- is thrown if error getting the parameterprotected void warnMissingUriParamOnProperty(String name)
public <T> void setParameter(String name, T value) throws RuntimeCamelException
EndpointConfiguration
setParameter
in interface EndpointConfiguration
name
- the parameter namevalue
- the parameter value
RuntimeCamelException
- is thrown if error setting the parameterpublic String toUriString(EndpointConfiguration.UriFormat format)
EndpointConfiguration
Endpoint
.
toUriString
in interface EndpointConfiguration
format
- the format
public CamelContext getCamelContext()
public Class<? extends Endpoint> getEndpointClass()
public ParameterConfiguration getPropertyConfiguration(String name)
public SortedMap<String,ParameterConfiguration> getPropertyConfigurationMap()
ParameterConfiguration
objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |