com.google.gwt.user.server.rpc |
Classes used in server-side implementation of remote procedure calls.
The {@link com.google.gwt.user.server.rpc.RemoteServiceServlet RemoteServiceServlet}
class provides the most convenient implementation
of server-side GWT RPC. This class can be used in two ways: it can be
subclassed by servlets that directly implement one or more service
interfaces, in which case incoming RPC calls will be directed to the
servlet subclass itself; or it can be overridden to give finer control over
routing RPC calls within a server framework. (For more details on the
latter, see the {@link com.google.gwt.user.server.rpc.RemoteServiceServlet#processCall(String) RemoteServiceServlet.processCall(String)} method.)
Alternatively, GWT RPC can be integrated into an existing framework, by using
the {@link com.google.gwt.user.server.rpc.RPC RPC} class to perform GWT
RPC decoding, invocation, and encoding. RemoteServiceServlet need not
be subclassed at all in this case, though reading its source is advisable.
Note that the default RemoteServiceServlet implementation never throws
exceptions to the servlet container. All exceptions that escape the the
{@link com.google.gwt.user.server.rpc.RemoteServiceServlet#processCall(String) RemoteServiceServlet.processCall(String)}
method will be caught, logged in the servlet context, and will cause a generic
failure message to be sent to the GWT client -- with a 500 status code. To
customize this behavior, override
{@link com.google.gwt.user.server.rpc.RemoteServiceServlet#doUnexpectedFailure(java.lang.Throwable) RemoteServiceServlet.doUnexpectedFailure(java.lang.Throwable)}.
|
Java Source File Name | Type | Comment |
CollectionsTestServiceImpl.java | Class | TODO: document me. |
CustomFieldSerializerTestServiceImpl.java | Class | Servlet used by the
com.google.gwt.user.client.rpc.CustomFieldSerializerTest CustomFieldSerializerTest unit test. |
EnumsTestServiceImpl.java | Class | Simple remote service used to echo enumerated types. |
InheritanceTestServiceImpl.java | Class | Servlet used by the
com.google.gwt.user.client.rpc.InheritanceTest InheritanceTest unit
test. |
ObjectGraphTestServiceImpl.java | Class | TODO: document me. |
RemoteServiceServlet.java | Class | The servlet base class for your RPC service implementations that
automatically deserializes incoming requests from the client and serializes
outgoing responses for client/server RPCs. |
RemoteServiceServletTest.java | Class | Test some of the failure modes associated with
RemoteServiceServlet.doGetSerializationPolicy(HttpServletRequestStringString) . |
RemoteServiceServletTestServiceImpl.java | Class | TODO: document me. |
RemoteServiceServletTestServiceImplBase.java | Class | TODO: document me. |
RPC.java | Class | Utility class for integrating with the RPC system. |
RPCRequest.java | Class | Describes an incoming RPC request in terms of a resolved
Method and
an array of arguments. |
RPCServletUtils.java | Class | Utility class containing helper methods used by servlets that integrate with
the RPC system. |
RPCTest.java | Class | Tests for the
com.google.gwt.user.server.rpc.RPC RPC class. |
SerializationPolicy.java | Class | This is an abstract class for representing the serialization policy for a
given module and
com.google.gwt.user.client.rpc.RemoteService RemoteService . |
SerializationPolicyLoader.java | Class | API for loading a
SerializationPolicy . |
SerializationPolicyLoaderTest.java | Class | Test the
SerializationPolicyLoader class. |
SerializationPolicyProvider.java | Interface | Used to obtain a
SerializationPolicy for a given module base URL and
serialization policy strong name. |
UnexpectedException.java | Class | The GWT RPC class throws UnexpectedException when a service method, being
invoked by GWT RPC, throws a checked exception that is not in the service
method's signature. |
UnicodeEscapingServiceImpl.java | Class | Implementation of the
UnicodeEscapingService interface. |
ValueTypesTestServiceImpl.java | Class | Server-side code for ValueTypesTest. |