public abstract class

ServletEndpointSupport

extends Object
implements ServiceLifecycle
java.lang.Object
   ↳ org.springframework.remoting.jaxrpc.ServletEndpointSupport

This class is deprecated.
in favor of JAX-WS support in org.springframework.remoting.jaxws

Class Overview

Convenience base class for JAX-RPC servlet endpoint implementations. Provides a reference to the current Spring application context, e.g. for bean lookup or resource loading.

The Web Service servlet needs to run in the same web application as the Spring context to allow for access to Spring's facilities. In case of Axis, copy the AxisServlet definition into your web.xml, and set up the endpoint in "server-config.wsdd" (or use the deploy tool).

This class does not extend WebApplicationObjectSupport to not expose any public setters. For some reason, Axis tries to resolve public setters in a special way...

JAX-RPC service endpoints are usually required to implement an RMI port interface. However, many JAX-RPC implementations accept plain service endpoint classes too, avoiding the need to maintain an RMI port interface in addition to an existing non-RMI business interface. Therefore, implementing the business interface will usually be sufficient.

Summary

Fields
protected final Log logger
Public Constructors
ServletEndpointSupport()
Public Methods
void destroy()
This implementation of destroy is empty.
final void init(Object context)
Initialize this JAX-RPC servlet endpoint.
Protected Methods
final ApplicationContext getApplicationContext()
Return the current Spring ApplicationContext.
final MessageSourceAccessor getMessageSourceAccessor()
Return a MessageSourceAccessor for the application context used by this object, for easy message access.
final ServletContext getServletContext()
Return the current ServletContext.
final ServletEndpointContext getServletEndpointContext()
Return the current JAX-RPC ServletEndpointContext.
final File getTempDir()
Return the temporary directory for the current web application, as provided by the servlet container.
final WebApplicationContext getWebApplicationContext()
Return the current Spring WebApplicationContext.
void onInit()
Callback for custom initialization after the context has been set up.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.xml.rpc.server.ServiceLifecycle

Fields

protected final Log logger

Public Constructors

public ServletEndpointSupport ()

Public Methods

public void destroy ()

This implementation of destroy is empty. Can be overridden in subclasses.

public final void init (Object context)

Initialize this JAX-RPC servlet endpoint. Calls onInit after successful context initialization.

Parameters
context ServletEndpointContext
Throws
ServiceException if the context is not a ServletEndpointContext
See Also

Protected Methods

protected final ApplicationContext getApplicationContext ()

Return the current Spring ApplicationContext.

protected final MessageSourceAccessor getMessageSourceAccessor ()

Return a MessageSourceAccessor for the application context used by this object, for easy message access.

protected final ServletContext getServletContext ()

Return the current ServletContext.

protected final ServletEndpointContext getServletEndpointContext ()

Return the current JAX-RPC ServletEndpointContext.

protected final File getTempDir ()

Return the temporary directory for the current web application, as provided by the servlet container.

Returns
  • the File representing the temporary directory

protected final WebApplicationContext getWebApplicationContext ()

Return the current Spring WebApplicationContext.

protected void onInit ()

Callback for custom initialization after the context has been set up.

Throws
ServiceException if initialization failed