KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > engine > csv > 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 1089 2006-09-14 19:57:55Z dutoo $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.engine.csv.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  * @version $Rev: 1069 $Date: ${date}
39  * @since Petals 1.0
40  * @author Marc Dutoo - Open Wide
41  *
42  */

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