public class SimpleRoutingSupport extends Object implements RoutingSupport
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DELIMITER |
Constructor and Description |
---|
SimpleRoutingSupport() |
SimpleRoutingSupport(String delimiter) |
Modifier and Type | Method and Description |
---|---|
String |
format(String sessionId,
String routeId)
Formats the specified session identifier and route identifier into a single identifier.
|
Map.Entry<String,String> |
parse(String id)
Parses the routing information from the specified session identifier.
|
public static final String DEFAULT_DELIMITER
public SimpleRoutingSupport()
public SimpleRoutingSupport(String delimiter)
public Map.Entry<String,String> parse(String id)
RoutingSupport
parse
in interface RoutingSupport
id
- the requested session identifier.public String format(String sessionId, String routeId)
RoutingSupport
format
in interface RoutingSupport
sessionId
- a session identifierrouteId
- a route identifier.Copyright © 2015 JBoss by Red Hat. All rights reserved.