1 17 package javax.jbi.messaging; 18 19 import java.net.URI ; 20 21 import javax.jbi.servicedesc.ServiceEndpoint; 22 23 import javax.xml.namespace.QName ; 24 25 public interface MessageExchange 26 { 27 String JTA_TRANSACTION_PROPERTY_NAME = "javax.jbi.transaction.jta"; 28 29 URI getPattern(); 30 31 String getExchangeId(); 32 33 ExchangeStatus getStatus(); 34 35 void setStatus(ExchangeStatus status) 36 throws MessagingException; 37 38 void setError(Exception error); 39 40 Exception getError(); 41 42 Fault getFault(); 43 44 void setFault(Fault fault) 45 throws MessagingException; 46 47 NormalizedMessage createMessage() 48 throws MessagingException; 49 50 Fault createFault() 51 throws MessagingException; 52 53 NormalizedMessage getMessage(String name); 54 55 void setMessage(NormalizedMessage msg, String name) 56 throws MessagingException; 57 58 Object getProperty(String name); 59 60 void setProperty(String name, Object obj); 61 62 void setEndpoint(ServiceEndpoint endpoint); 63 64 void setService(QName service); 65 66 void setInterfaceName(QName interfaceName); 67 68 void setOperation(QName name); 69 70 ServiceEndpoint getEndpoint(); 71 72 QName getInterfaceName(); 73 74 QName getService(); 75 76 QName getOperation(); 77 78 boolean isTransacted(); 79 80 Role getRole(); 81 82 java.util.Set getPropertyNames(); 83 84 public static final class Role 85 { 86 public static final Role PROVIDER = new Role(); 87 88 public static final Role CONSUMER = new Role(); 89 90 private Role() 91 { 92 } 93 } 94 } 95 | Popular Tags |