|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.remoting.jaxrpc.ServletEndpointSupport
org.springframework.remoting.jaxws
@Deprecated public abstract class ServletEndpointSupport
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.
init(java.lang.Object)
,
getWebApplicationContext()
Field Summary | |
---|---|
protected Log |
logger
Deprecated. |
private MessageSourceAccessor |
messageSourceAccessor
Deprecated. |
private javax.xml.rpc.server.ServletEndpointContext |
servletEndpointContext
Deprecated. |
private WebApplicationContext |
webApplicationContext
Deprecated. |
Constructor Summary | |
---|---|
ServletEndpointSupport()
Deprecated. |
Method Summary | |
---|---|
void |
destroy()
Deprecated. This implementation of destroy is empty. |
protected ApplicationContext |
getApplicationContext()
Deprecated. Return the current Spring ApplicationContext. |
protected MessageSourceAccessor |
getMessageSourceAccessor()
Deprecated. Return a MessageSourceAccessor for the application context used by this object, for easy message access. |
protected javax.servlet.ServletContext |
getServletContext()
Deprecated. Return the current ServletContext. |
protected javax.xml.rpc.server.ServletEndpointContext |
getServletEndpointContext()
Deprecated. Return the current JAX-RPC ServletEndpointContext. |
protected java.io.File |
getTempDir()
Deprecated. Return the temporary directory for the current web application, as provided by the servlet container. |
protected WebApplicationContext |
getWebApplicationContext()
Deprecated. Return the current Spring WebApplicationContext. |
void |
init(java.lang.Object context)
Deprecated. Initialize this JAX-RPC servlet endpoint. |
protected void |
onInit()
Deprecated. Callback for custom initialization after the context has been set up. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
private javax.xml.rpc.server.ServletEndpointContext servletEndpointContext
private WebApplicationContext webApplicationContext
private MessageSourceAccessor messageSourceAccessor
Constructor Detail |
---|
public ServletEndpointSupport()
Method Detail |
---|
public final void init(java.lang.Object context) throws javax.xml.rpc.ServiceException
init
in interface javax.xml.rpc.server.ServiceLifecycle
context
- ServletEndpointContext
javax.xml.rpc.ServiceException
- if the context is not a ServletEndpointContextonInit()
protected final javax.xml.rpc.server.ServletEndpointContext getServletEndpointContext()
protected final ApplicationContext getApplicationContext()
protected final WebApplicationContext getWebApplicationContext()
protected final MessageSourceAccessor getMessageSourceAccessor()
protected final javax.servlet.ServletContext getServletContext()
protected final java.io.File getTempDir()
protected void onInit() throws javax.xml.rpc.ServiceException
javax.xml.rpc.ServiceException
- if initialization failedpublic void destroy()
destroy
in interface javax.xml.rpc.server.ServiceLifecycle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |