org.apache.servicemix.jbi.resolver
Class URIResolver

java.lang.Object
  extended by org.apache.servicemix.jbi.resolver.EndpointResolverSupport
      extended by org.apache.servicemix.jbi.resolver.URIResolver
All Implemented Interfaces:
org.apache.servicemix.jbi.api.EndpointResolver

public class URIResolver
extends EndpointResolverSupport


Constructor Summary
URIResolver()
           
URIResolver(String uri)
           
 
Method Summary
static void configureExchange(javax.jbi.messaging.MessageExchange exchange, javax.jbi.component.ComponentContext context, String uri)
          Configure a JBI exchange with the given URI as the target
protected  javax.jbi.JBIException createServiceUnavailableException()
           
static DocumentFragment createWSAEPR(String uri)
           
 String getUri()
           
 javax.jbi.servicedesc.ServiceEndpoint[] resolveAvailableEndpoints(javax.jbi.component.ComponentContext context, javax.jbi.messaging.MessageExchange exchange)
           
 void setUri(String uri)
           
static String[] split2(String uri)
           
static String[] split3(String uri)
           
 
Methods inherited from class org.apache.servicemix.jbi.resolver.EndpointResolverSupport
filterEndpoints, getChooser, isFailIfUnavailable, resolveEndpoint, setChooser, setFailIfUnavailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIResolver

public URIResolver()

URIResolver

public URIResolver(String uri)
Method Detail

createServiceUnavailableException

protected javax.jbi.JBIException createServiceUnavailableException()
Specified by:
createServiceUnavailableException in class EndpointResolverSupport

resolveAvailableEndpoints

public javax.jbi.servicedesc.ServiceEndpoint[] resolveAvailableEndpoints(javax.jbi.component.ComponentContext context,
                                                                         javax.jbi.messaging.MessageExchange exchange)
                                                                  throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

getUri

public String getUri()
Returns:
the uri

setUri

public void setUri(String uri)
Parameters:
uri - the uri to set

createWSAEPR

public static DocumentFragment createWSAEPR(String uri)

configureExchange

public static void configureExchange(javax.jbi.messaging.MessageExchange exchange,
                                     javax.jbi.component.ComponentContext context,
                                     String uri)
Configure a JBI exchange with the given URI as the target

Parameters:
exchange - the exchange to configure
context - a component context used to resolve endpoints
uri - the target uri

split3

public static String[] split3(String uri)

split2

public static String[] split2(String uri)


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.