1 10 11 package org.mule.umo; 12 13 import org.mule.umo.endpoint.UMOImmutableEndpoint; 14 import org.mule.umo.security.UMOCredentials; 15 import org.mule.umo.transformer.TransformerException; 16 17 import java.io.OutputStream ; 18 19 31 public interface UMOEvent 32 { 33 public static final int TIMEOUT_WAIT_FOREVER = 0; 34 public static final int TIMEOUT_DO_NOT_WAIT = -1; 35 public static final int TIMEOUT_NOT_SET_VALUE = Integer.MIN_VALUE; 36 37 42 UMOMessage getMessage(); 43 44 public UMOCredentials getCredentials(); 45 46 52 byte[] getMessageAsBytes() throws UMOException; 53 54 63 Object getTransformedMessage() throws TransformerException; 64 65 75 byte[] getTransformedMessageAsBytes() throws TransformerException; 76 77 88 String getTransformedMessageAsString() throws TransformerException; 89 90 97 String getMessageAsString() throws UMOException; 98 99 110 String getTransformedMessageAsString(String encoding) throws TransformerException; 111 112 119 String getMessageAsString(String encoding) throws UMOException; 120 121 126 String getId(); 127 128 136 Object getProperty(String name); 137 138 148 Object getProperty(String name, boolean exhaustiveSearch); 149 150 159 Object getProperty(String name, Object defaultValue); 160 161 172 Object getProperty(String name, Object defaultValue, boolean exhaustiveSearch); 173 174 184 int getIntProperty(String name, int defaultValue); 185 186 196 long getLongProperty(String name, long defaultValue); 197 198 208 double getDoubleProperty(String name, double defaultValue); 209 210 220 boolean getBooleanProperty(String name, boolean defaultValue); 221 222 232 String getStringProperty(String name, String defaultValue); 233 234 242 void setProperty(String name, Object value); 243 244 253 void setBooleanProperty(String name, boolean value); 254 255 264 void setIntProperty(String name, int value); 265 266 275 void setLongProperty(String name, long value); 276 277 286 void setDoubleProperty(String name, double value); 287 288 297 void setStringProperty(String name, String value); 298 299 304 UMOImmutableEndpoint getEndpoint(); 305 306 311 UMOSession getSession(); 312 313 318 UMOComponent getComponent(); 319 320 335 boolean isStopFurtherProcessing(); 336 337 349 void setStopFurtherProcessing(boolean stopFurtherProcessing); 350 351 356 boolean isSynchronous(); 357 358 363 void setSynchronous(boolean value); 364 365 372 int getTimeout(); 373 374 381 void setTimeout(int timeout); 382 383 390 OutputStream getOutputStream(); 391 392 400 Object removeProperty(String key); 401 402 407 boolean isStreaming(); 408 409 414 String getEncoding(); 415 416 } 417 | Popular Tags |