001: /*
002: * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025:
026: /** Java interface "MessageStruct.java" generated from Poseidon for UML.
027: * Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>.
028: * Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine.
029: */package com.sun.pept.presentation;
030:
031: import java.util.*;
032: import java.lang.reflect.Method;
033:
034: /**
035: * <p>
036: *
037: * @author Dr. Harold Carr
038: * </p>
039: */
040: public interface MessageStruct {
041:
042: ///////////////////////////////////////
043: //attributes
044:
045: /**
046: * <p>
047: * Represents ...
048: * </p>
049: */
050: public static final int NORMAL_RESPONSE = 0;
051:
052: /**
053: * <p>
054: * Represents ...
055: * </p>
056: */
057: public static final int CHECKED_EXCEPTION_RESPONSE = 1;
058:
059: /**
060: * <p>
061: * Represents ...
062: * </p>
063: */
064: public static final int UNCHECKED_EXCEPTION_RESPONSE = 2;
065:
066: /**
067: * <p>
068: * Represents ...
069: * </p>
070: */
071: public static final int REQUEST_RESPONSE_MEP = 1;
072:
073: /**
074: * <p>
075: * Represents ...
076: * </p>
077: */
078: public static final int ONE_WAY_MEP = 2;
079:
080: /**
081: * <p>
082: * Represents ...
083: * </p>
084: */
085: public static final int ASYNC_POLL_MEP = 3;
086:
087: /**
088: * <p>
089: * Represents ...
090: * </p>
091: */
092: public static final int ASYNC_CALLBACK_MEP = 4;
093:
094: ///////////////////////////////////////
095: // operations
096:
097: /**
098: * <p>
099: * Does ...
100: * </p><p>
101: *
102: * @param data ...
103: * </p><p>
104: *
105: * </p>
106: */
107: public void setData(Object[] data);
108:
109: /**
110: * <p>
111: * Does ...
112: * </p><p>
113: *
114: * @return a Object[] with ...
115: * </p>
116: */
117: public Object[] getData();
118:
119: /**
120: * <p>
121: * Does ...
122: * </p><p>
123: *
124: * </p><p>
125: *
126: * @param name ...
127: * </p><p>
128: * @param value ...
129: * </p>
130: */
131: public void setMetaData(Object name, Object value);
132:
133: /**
134: * <p>
135: * Does ...
136: * </p><p>
137: *
138: * @return a Object with ...
139: * </p><p>
140: * @param name ...
141: * </p>
142: */
143: public Object getMetaData(Object name);
144:
145: /**
146: * <p>
147: * Does ...
148: * </p><p>
149: *
150: * </p><p>
151: *
152: * @param messageExchangePattern ...
153: * </p>
154: */
155: public void setMEP(int messageExchangePattern);
156:
157: /**
158: * <p>
159: * Does ...
160: * </p><p>
161: *
162: * @return a int with ...
163: * </p>
164: */
165: public int getMEP();
166:
167: /**
168: * <p>
169: * Does ...
170: * </p><p>
171: *
172: * @return a int with ...
173: * </p>
174: */
175: public int getResponseType();
176:
177: /**
178: * <p>
179: * Does ...
180: * </p><p>
181: *
182: * </p><p>
183: *
184: * @param responseType ...
185: * </p>
186: */
187: public void setResponseType(int responseType);
188:
189: /**
190: * <p>
191: * Does ...
192: * </p><p>
193: *
194: * @return a Object with ...
195: * </p>
196: */
197: public Object getResponse();
198:
199: /**
200: * <p>
201: * Does ...
202: * </p><p>
203: *
204: * </p><p>
205: *
206: * @param response ...
207: * </p>
208: */
209: public void setResponse(Object response);
210:
211: /**
212: * <p>
213: * Does ...
214: * </p><p>
215: *
216: * </p><p>
217: *
218: * @param method ...
219: * </p>
220: */
221: public void setMethod(Method method);
222:
223: /**
224: * <p>
225: * Does ...
226: * </p><p>
227: *
228: * @return a Method with ...
229: * </p>
230: */
231: public Method getMethod();
232:
233: } // end MessageStruct
|