类 SimpleHttpInvokerServiceExporter

  • 所有已实现的接口:
    com.sun.net.httpserver.HttpHandler, Aware, BeanClassLoaderAware, InitializingBean

    @Deprecated
    @UsesSunHttpServer
    public class SimpleHttpInvokerServiceExporter
    extends RemoteInvocationSerializingExporter
    implements com.sun.net.httpserver.HttpHandler
    已过时。
    as of Spring Framework 5.1, in favor of HttpInvokerServiceExporter
    HTTP request handler that exports the specified service bean as HTTP invoker service endpoint, accessible via an HTTP invoker proxy. Designed for Sun's JRE 1.6 HTTP server, implementing the HttpHandler interface.

    Deserializes remote invocation objects and serializes remote invocation result objects. Uses Java serialization just like RMI, but provides the same ease of setup as Caucho's HTTP-based Hessian protocol.

    HTTP invoker is the recommended protocol for Java-to-Java remoting. It is more powerful and more extensible than Hessian, at the expense of being tied to Java. Nevertheless, it is as easy to set up as Hessian, which is its main advantage compared to RMI.

    WARNING: Be aware of vulnerabilities due to unsafe Java deserialization: Manipulated input streams could lead to unwanted code execution on the server during the deserialization step. As a consequence, do not expose HTTP invoker endpoints to untrusted clients but rather just between your own services. In general, we strongly recommend any other message format (e.g. JSON) instead.

    从以下版本开始:
    2.5.1
    作者:
    Juergen Hoeller
    另请参阅:
    HttpInvokerClientInterceptor, HttpInvokerProxyFactoryBean