Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomplet.container
Class SimpleStompletContainer

java.lang.Object
  extended by org.projectodd.stilts.stomplet.container.SimpleStompletContainer
All Implemented Interfaces:
StompletContainer, MessageRouter
Direct Known Subclasses:
WeldStompletContainer

public class SimpleStompletContainer
extends Object
implements StompletContainer, MessageRouter


Constructor Summary
SimpleStompletContainer()
           
 
Method Summary
 void addStomplet(String destinationPattern, Stomplet stomplet)
           
 void addStomplet(String destinationPattern, Stomplet stomplet, Map<String,String> properties)
           
protected  void destroy(Stomplet stomplet)
           
 RouteMatch match(String destination)
           
 void send(StompMessage message)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStompletContainer

public SimpleStompletContainer()
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface StompletContainer
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface StompletContainer
Throws:
Exception

destroy

protected void destroy(Stomplet stomplet)
                throws StompException
Throws:
StompException

addStomplet

public void addStomplet(String destinationPattern,
                        Stomplet stomplet)
                 throws StompException
Throws:
StompException

addStomplet

public void addStomplet(String destinationPattern,
                        Stomplet stomplet,
                        Map<String,String> properties)
                 throws StompException
Throws:
StompException

send

public void send(StompMessage message)
          throws StompException
Specified by:
send in interface MessageRouter
Throws:
StompException

match

public RouteMatch match(String destination)
Specified by:
match in interface StompletContainer

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.