org.jboss.remoting.util
Class ServiceURI

java.lang.Object
  extended by org.jboss.remoting.util.ServiceURI

public final class ServiceURI
extends Object

A parser for JBoss Remoting URI types.


Field Summary
static String SCHEME
           
 
Method Summary
static URI create(String serviceType, String groupName, String endpointName)
          Create a Remoting service URI.
static String getEndpointName(URI uri)
          Get the endpoint name from a Remoting service URI.
static String getGroupName(URI uri)
          Get the group name from a Remoting service URI.
static String getServiceType(URI uri)
          Get the service type from a Remoting service URI.
static boolean isRemotingServiceUri(URI uri)
          Determine if this URI is a valid Remoting service URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final String SCHEME
See Also:
Constant Field Values
Method Detail

isRemotingServiceUri

public static boolean isRemotingServiceUri(URI uri)
Determine if this URI is a valid Remoting service URI.

Parameters:
uri - the URI
Returns:
true if the given URI is a valid Remoting service URI

getServiceType

public static String getServiceType(URI uri)
                             throws IllegalArgumentException
Get the service type from a Remoting service URI.

Parameters:
uri - the URI
Returns:
the service type
Throws:
IllegalArgumentException - if the given URI is not for a remoting service

getGroupName

public static String getGroupName(URI uri)
                           throws IllegalArgumentException
Get the group name from a Remoting service URI.

Parameters:
uri - the URI
Returns:
the group name
Throws:
IllegalArgumentException - if the given URI is not for a remoting service

getEndpointName

public static String getEndpointName(URI uri)
                              throws IllegalArgumentException
Get the endpoint name from a Remoting service URI.

Parameters:
uri - the URI
Returns:
the endpoint name
Throws:
IllegalArgumentException - if the given URI is not for a remoting service

create

public static URI create(String serviceType,
                         String groupName,
                         String endpointName)
Create a Remoting service URI.

Parameters:
serviceType - the service type, if any
groupName - the group name, if any
endpointName - the endpoint name, if any
Returns:
the URI


Copyright © 2008 JBoss, a division of Red Hat, Inc.