KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > binding > xquarebc > mock > MockRobustInOnly


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: MockRobustInOnly.java,v 1.1 2006/10/23 18:22:41 mdutoo Exp $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.binding.xquarebc.mock;
23
24 import java.net.URI JavaDoc;
25 import java.util.Set JavaDoc;
26
27 import javax.jbi.messaging.ExchangeStatus;
28 import javax.jbi.messaging.Fault;
29 import javax.jbi.messaging.MessagingException;
30 import javax.jbi.messaging.NormalizedMessage;
31 import javax.jbi.messaging.RobustInOnly;
32 import javax.jbi.servicedesc.ServiceEndpoint;
33 import javax.xml.namespace.QName JavaDoc;
34
35 /**
36  * Mock of the RobustInOnly
37  *
38  * @author Marc Dutoo - Open Wide
39  */

40 public class MockRobustInOnly implements RobustInOnly {
41
42     public NormalizedMessage getInMessage() throws IllegalStateException JavaDoc {
43         return null;
44     }
45
46     public void setInMessage(NormalizedMessage msg) throws MessagingException {
47     }
48
49     public Fault createFault() throws MessagingException {
50         return null;
51     }
52
53     public NormalizedMessage createMessage() throws MessagingException {
54         return new MockNormalizedMessage();
55     }
56
57     public ServiceEndpoint getEndpoint() {
58         return null;
59     }
60
61     public Exception JavaDoc getError() {
62         return null;
63     }
64
65     public String JavaDoc getExchangeId() {
66         return null;
67     }
68
69     public Fault getFault() {
70         return null;
71     }
72
73     public QName JavaDoc getInterfaceName() {
74         return null;
75     }
76
77     public NormalizedMessage getMessage(String JavaDoc name) {
78         return null;
79     }
80
81     public QName JavaDoc getOperation() {
82         return null;
83     }
84
85     public URI JavaDoc getPattern() {
86         return null;
87     }
88
89     public Object JavaDoc getProperty(String JavaDoc name) {
90         return null;
91     }
92
93     public Set JavaDoc getPropertyNames() {
94         return null;
95     }
96
97     public Role getRole() {
98         return null;
99     }
100
101     public QName JavaDoc getService() {
102         return null;
103     }
104
105     public ExchangeStatus getStatus() {
106         return ExchangeStatus.DONE;
107     }
108
109     public boolean isTransacted() {
110         return false;
111     }
112
113     public void setEndpoint(ServiceEndpoint endpoint) {
114     }
115
116     public void setError(Exception JavaDoc error) {
117     }
118
119     public void setFault(Fault fault) throws MessagingException {
120     }
121
122     public void setInterfaceName(QName JavaDoc interfaceName) {
123     }
124
125     public void setMessage(NormalizedMessage msg, String JavaDoc name)
126         throws MessagingException {
127     }
128
129     public void setOperation(QName JavaDoc name) {
130     }
131
132     public void setProperty(String JavaDoc name, Object JavaDoc obj) {
133     }
134
135     public void setService(QName JavaDoc service) {
136     }
137
138     public void setStatus(ExchangeStatus status) throws MessagingException {
139     }
140
141 }
142
Popular Tags