WebRPC is Now HTTP-RPC
WebRPC is no more: it's HTTP-RPC now. Along with the name change are a few class name alterations, including Java server and Java client.
Join the DZone community and get the full member experience.
Join For FreeWebRPC is now called HTTP-RPC. The name was changed for several reasons:
- The previous name suggested that it was a tool for web (i.e. HTML) development, not cross-platform RPC. It was also easily confused with WebRTC (“Real-Time Communication”).
- The webrpc.org domain was not available, but httprpc.org was.
The new name more clearly reflects the project's purpose: “cross-platform RPC over HTTP.”
Several class names were also changed:
Java Server
vellum.webrpc.WebRPCService
is noworg.httprpc.WebService
vellum.webrpc.WebRPCServlet
is noworg.httprpc.ResultDispatcherServlet
vellum.webrpc.sql.ResultSetAdapter
is noworg.httprpc.sql.ResultSetAdapter
Additionally, the vellum.webrpc.Result
class has been repurposed as org.httprpc.beans.BeanAdapter
. This class wraps an existing Bean object, rather than requiring the Bean to extend a specific type. It also provides parity with ResultSetAdapter
, which wraps a result set.
Finally, the static map factory methods defined by the vellum.webrpc.Arguments
class were moved to WebService
.
Java Client
vellum.webrpc.WebRPCService
is now org.httprpc.WebServiceProxy
Note that this change makes it possible to use both the Java Server and Java Client libraries in a single application. This was previously not possible because the libraries both used the name vellum.webrpc.WebRPCService
to refer to two different classes.
Objective-C/Swift Client
WSWebRPCService
is now WSWebServiceProxy
JavaScript Client
WebRPCService
is now WebServiceProxy
The API is otherwise unchanged. See the project site for more information.
Published at DZone with permission of Greg Brown, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments