RrpcServlet
@Deprecated public abstract class RemoteableServlet extends BasicRestServlet
Constructor and Description |
---|
RemoteableServlet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<LinkString> |
getInterfaces(RestRequest req)
Deprecated.
[GET /] - Get the list of all remote interfaces.
|
protected abstract Map<Class<?>,Object> |
getServiceMap()
Deprecated.
Returns the list of interfaces to their implementation objects.
|
Object |
invoke(RestRequest req,
String javaInterface,
String javaMethod)
Deprecated.
[POST /{javaInterface}/{javaMethod}] - Invoke the specified service method.
|
Collection<String> |
listMethods(String javaInterface)
Deprecated.
[GET /{javaInterface] - Get the list of all remoteable methods on the specified interface name.
|
getOptions
destroy, getContext, getProperties, getRequest, getResponse, getServletConfig, init, log, log, log, log, logObjects, service, setContext
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public RemoteableServlet()
protected abstract Map<Class<?>,Object> getServiceMap() throws Exception
This class is called often and not cached, so any caching should occur in the subclass if necessary.
Exception
@RestMethod(name="GET", path="/") public List<LinkString> getInterfaces(RestRequest req) throws Exception
req
- The HTTP servlet request.Exception
@RestMethod(name="GET", path="/{javaInterface}") public Collection<String> listMethods(@Path String javaInterface) throws Exception
javaInterface
- The Java interface name.Exception
@RestMethod(name="POST", path="/{javaInterface}/{javaMethod}") public Object invoke(RestRequest req, @Path String javaInterface, @Path String javaMethod) throws Exception
req
- The HTTP request.javaInterface
- The Java interface name.javaMethod
- The Java method name or signature.Exception
Copyright © 2018 Apache. All rights reserved.