001: /*
002: * Copyright 2007 Google Inc.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
005: * use this file except in compliance with the License. You may obtain a copy of
006: * the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
013: * License for the specific language governing permissions and limitations under
014: * the License.
015: */
016: package com.google.gwt.user.client.rpc;
017:
018: import java.util.ArrayList;
019: import java.util.Date;
020: import java.util.HashMap;
021: import java.util.HashSet;
022: import java.util.List;
023: import java.util.Vector;
024:
025: /**
026: * TODO: document me.
027: */
028: public interface CollectionsTestService extends RemoteService {
029:
030: /**
031: * TODO: document me.
032: */
033: public static class CollectionsTestServiceException extends
034: SerializableException {
035: public CollectionsTestServiceException() {
036: }
037:
038: public CollectionsTestServiceException(String msg) {
039: super (msg);
040: }
041: }
042:
043: /**
044: * @gwt.typeArgs value <com.google.gwt.user.client.rpc.IsSerializable>
045: * @gwt.typeArgs <com.google.gwt.user.client.rpc.IsSerializable>
046: */
047: ArrayList echo(ArrayList value)
048: throws CollectionsTestServiceException;
049:
050: boolean[] echo(boolean[] value)
051: throws CollectionsTestServiceException;
052:
053: Boolean[] echo(Boolean[] value)
054: throws CollectionsTestServiceException;
055:
056: byte[] echo(byte[] value) throws CollectionsTestServiceException;
057:
058: Byte[] echo(Byte[] value) throws CollectionsTestServiceException;
059:
060: char[] echo(char[] value) throws CollectionsTestServiceException;
061:
062: Character[] echo(Character[] value)
063: throws CollectionsTestServiceException;
064:
065: Date[] echo(Date[] date) throws CollectionsTestServiceException;
066:
067: double[] echo(double[] value)
068: throws CollectionsTestServiceException;
069:
070: Double[] echo(Double[] value)
071: throws CollectionsTestServiceException;
072:
073: float[] echo(float[] value) throws CollectionsTestServiceException;
074:
075: Float[] echo(Float[] value) throws CollectionsTestServiceException;
076:
077: /**
078: * @gwt.typeArgs value <java.lang.String,
079: * com.google.gwt.user.client.rpc.IsSerializable>
080: * @gwt.typeArgs <java.lang.String,
081: * com.google.gwt.user.client.rpc.IsSerializable>
082: */
083: HashMap echo(HashMap value) throws CollectionsTestServiceException;
084:
085: /**
086: * @gwt.typeArgs value <com.google.gwt.user.client.rpc.IsSerializable>
087: * @gwt.typeArgs <com.google.gwt.user.client.rpc.IsSerializable>
088: */
089: HashSet echo(HashSet value) throws CollectionsTestServiceException;
090:
091: int[] echo(int[] value) throws CollectionsTestServiceException;
092:
093: Integer[] echo(Integer[] value)
094: throws CollectionsTestServiceException;
095:
096: long[] echo(long[] value) throws CollectionsTestServiceException;
097:
098: Long[] echo(Long[] value) throws CollectionsTestServiceException;
099:
100: short[] echo(short[] value) throws CollectionsTestServiceException;
101:
102: Short[] echo(Short[] value) throws CollectionsTestServiceException;
103:
104: String[] echo(String[] value)
105: throws CollectionsTestServiceException;
106:
107: String[][] echo(String[][] value)
108: throws CollectionsTestServiceException;
109:
110: /**
111: * @gwt.typeArgs value <com.google.gwt.user.client.rpc.IsSerializable>
112: * @gwt.typeArgs <com.google.gwt.user.client.rpc.IsSerializable>
113: */
114: Vector echo(Vector value) throws CollectionsTestServiceException;
115:
116: /**
117: * This method is used to test that trying to return Arrays.asList will result
118: * in an InvocationException on the client.
119: *
120: * @gwt.typeArgs value <java.lang.Byte>
121: * @gwt.typeArgs <java.lang.Byte>
122: */
123: List getArraysAsList(List value);
124: }
|