1 10 11 package org.mule.umo; 12 13 import org.mule.umo.endpoint.UMOImmutableEndpoint; 14 import org.mule.umo.security.UMOSecurityContext; 15 16 import java.io.Serializable ; 17 import java.util.Iterator ; 18 19 30 31 public interface UMOSession extends Serializable 32 { 33 39 UMOComponent getComponent(); 40 41 50 UMOMessage sendEvent(UMOMessage message) throws UMOException; 51 52 62 UMOMessage sendEvent(UMOEvent event) throws UMOException; 63 64 75 UMOMessage sendEvent(UMOMessage message, UMOImmutableEndpoint endpoint) throws UMOException; 76 77 90 UMOMessage sendEvent(UMOMessage message, String endpointName) throws UMOException; 91 92 100 void dispatchEvent(UMOMessage message) throws UMOException; 101 102 112 void dispatchEvent(UMOEvent event) throws UMOException; 113 114 124 void dispatchEvent(UMOMessage message, UMOImmutableEndpoint endpoint) throws UMOException; 125 126 138 void dispatchEvent(UMOMessage message, String endpointName) throws UMOException; 139 140 149 UMOMessage receiveEvent(UMOImmutableEndpoint endpoint, long timeout) throws UMOException; 150 151 160 UMOMessage receiveEvent(String endpointName, long timeout) throws UMOException; 161 162 168 boolean isValid(); 169 170 176 void setValid(boolean value); 177 178 187 UMOEvent createOutboundEvent(UMOMessage message, UMOImmutableEndpoint endpoint, UMOEvent previousEvent) 188 throws UMOException; 189 190 195 String getId(); 196 197 204 void setSecurityContext(UMOSecurityContext context); 205 206 212 UMOSecurityContext getSecurityContext(); 213 214 221 void setProperty(Object key, Object value); 222 223 229 Object getProperty(Object key); 230 231 237 Object removeProperty(Object key); 238 239 246 Iterator getPropertyNames(); 247 248 } 249 | Popular Tags |