| org.apache.cocoon.components.axis.SoapServerImpl
SoapServerImpl | public class SoapServerImpl extends AbstractLogEnabled implements SoapServer,Composable,Configurable,Contextualizable,Initializable,Startable,ThreadSafe(Code) | | SOAP Server Implementation
This server accepts a SOAP Request, and generates the resultant
response as output. Essentially, this reader allows you to serve SOAP
requests from your Cocoon application.
Code originates from the Apache
AXIS project,
org.apache.axis.http.transport.AxisServlet .
Ported to Cocoon by:
author: Marcus Crafter author: Original AxisServlet authors: author: Steve Loughran author: Doug Davis version: CVS $Id: SoapServerImpl.java 540711 2007-05-22 19:36:07Z cziegeler $ |
Method Summary | |
public void | compose(ComponentManager manager) | public void | configure(Configuration config) Configures this server. | public void | contextualize(Context context) | public AxisServer | createEngine() This is a uniform method of initializing AxisServer in a servlet
context. | public MessageContext | createMessageContext(HttpServletRequest req, HttpServletResponse res, ServletContext con) Place the Request message in the MessagContext object - notice
that we just leave it as a 'ServletRequest' object and let the
Message processing routine convert it - we don't do it since we
don't know how it's going to be used - perhaps it might not
even need to be parsed. | protected Map | getEngineEnvironment() | public void | initialize() | public void | invoke(MessageContext message) | public void | setServerConfig(Configuration config) Helper method to set the axis server configuration. | public void | start() Starts this server. | public void | stop() Stops this reader. |
DEFAULT_SERVER_CONFIG | final public static String DEFAULT_SERVER_CONFIG(Code) | | Constant describing the default location of the server configuration file
|
compose | public void compose(ComponentManager manager) throws ComponentException(Code) | | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | Configures this server.
Sets the following optional configuration settings:
- Server WSDD configuration
- Attachment directory
- JWS directory
- Security provider
- Transport name
- Mananged services
The following format is used:
<soap-server>
<server-wsdd src="..."/>
<attachment-dir src="..."/>
<jws-dir src="..."/>
<security-provider enabled="..."/>
<transport name="..."/>
<managed-services>
<descriptor src="..."/>
<descriptor src="..."/>
</managed-services>
</soap-server>
Parameters: config - a Configuration instance exception: ConfigurationException - if an error occurs |
contextualize | public void contextualize(Context context) throws ContextException(Code) | | |
createEngine | public AxisServer createEngine() throws Exception(Code) | | This is a uniform method of initializing AxisServer in a servlet
context.
|
createMessageContext | public MessageContext createMessageContext(HttpServletRequest req, HttpServletResponse res, ServletContext con)(Code) | | Place the Request message in the MessagContext object - notice
that we just leave it as a 'ServletRequest' object and let the
Message processing routine convert it - we don't do it since we
don't know how it's going to be used - perhaps it might not
even need to be parsed.
|
setServerConfig | public void setServerConfig(Configuration config) throws Exception(Code) | | Helper method to set the axis server configuration.
Parameters: config - a Configuration instance exception: Exception - if an error occurs |
start | public void start() throws Exception(Code) | | Starts this server. Deploys all managed services as specified at
configuration time.
exception: Exception - if an error occurs |
stop | public void stop() throws Exception(Code) | | Stops this reader. Undeploys all managed services this reader
currently manages (includes services dynamically added to the reader
during runtime).
exception: Exception - if an error occurs |
|
|