Apache CXF API

org.apache.cxf.transport.jms.uri
Class JMSEndpointParser

java.lang.Object
  extended by org.apache.cxf.transport.jms.uri.JMSEndpointParser

public final class JMSEndpointParser
extends Object


Method Summary
protected static String convertPathToActualDestination(String path)
          A strategy method allowing the URI destination to be translated into the actual JMS destination name (say by looking up in JNDI or something)
static JMSEndpoint createEndpoint(String uri)
           
protected static JMSEndpoint createEndpoint(String uri, String remaining)
          A factory method allowing derived components to create a new endpoint from the given URI, remaining path and optional parameters
static JMSURIConstants getConfiguration()
           
static String removeStartingCharacters(String text, char ch)
          Removes any starting characters on the given text which match the given character
protected static void validateURI(String uri, String path, Map parameters)
          Strategy for validation of the uri when creating the endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createEndpoint

public static JMSEndpoint createEndpoint(String uri)
                                  throws Exception
Throws:
Exception

validateURI

protected static void validateURI(String uri,
                                  String path,
                                  Map parameters)
                           throws ResolveEndpointFailedException
Strategy for validation of the uri when creating the endpoint.

Parameters:
uri - the uri - the uri the end user provided untouched
path - the path - part after the scheme
parameters - the parameters, an empty map if no parameters given
Throws:
ResolveEndpointFailedException - should be thrown if the URI validation failed

createEndpoint

protected static JMSEndpoint createEndpoint(String uri,
                                            String remaining)
                                     throws Exception
A factory method allowing derived components to create a new endpoint from the given URI, remaining path and optional parameters

Parameters:
uri - the full URI of the endpoint
remaining - the remaining part of the URI without the query parameters or component prefix
parameters - the optional parameters passed in
Returns:
a newly created endpoint or null if the endpoint cannot be created based on the inputs
Throws:
Exception

convertPathToActualDestination

protected static String convertPathToActualDestination(String path)
A strategy method allowing the URI destination to be translated into the actual JMS destination name (say by looking up in JNDI or something)


getConfiguration

public static JMSURIConstants getConfiguration()

removeStartingCharacters

public static String removeStartingCharacters(String text,
                                              char ch)
Removes any starting characters on the given text which match the given character

Parameters:
text - the string
ch - the initial characters to remove
Returns:
either the original string or the new substring

Apache CXF API

Apache CXF