JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3
Class ServiceURI

java.lang.Object
  extended by org.jboss.remoting3.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.
static void validateEndpointName(String endpointName)
           
static void validateGroupName(CharSequence groupName)
           
static void validateServiceType(CharSequence serviceType)
           
 
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

validateServiceType

public static void validateServiceType(CharSequence serviceType)

validateGroupName

public static void validateGroupName(CharSequence groupName)

validateEndpointName

public static void validateEndpointName(String endpointName)

JBoss Remoting 3.1.0.Beta1

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