|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.axis.SoapServerImpl
public class SoapServerImpl
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
.
AxisServlet
authors:, Steve Loughran, Doug DavisField Summary | |
---|---|
static String |
DEFAULT_SERVER_CONFIG
Constant describing the default location of the server configuration file |
Fields inherited from interface org.apache.cocoon.components.axis.SoapServer |
---|
LOGGER, ROLE |
Constructor Summary | |
---|---|
SoapServerImpl()
|
Method Summary | |
---|---|
void |
compose(ComponentManager manager)
|
void |
configure(Configuration config)
Configures this server. |
void |
contextualize(Context context)
|
org.apache.axis.server.AxisServer |
createEngine()
This is a uniform method of initializing AxisServer in a servlet context. |
org.apache.axis.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()
|
void |
initialize()
|
void |
invoke(org.apache.axis.MessageContext message)
Invoke a particular message context on this server. |
void |
setServerConfig(Configuration config)
Helper method to set the axis server configuration. |
void |
start()
Starts this server. |
void |
stop()
Stops this reader. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SERVER_CONFIG
Constructor Detail |
---|
public SoapServerImpl()
Method Detail |
---|
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void compose(ComponentManager manager) throws ComponentException
compose
in interface Composable
ComponentException
public void configure(Configuration config) throws ConfigurationException
Sets the following optional configuration settings:
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>
configure
in interface Configurable
config
- a Configuration
instance
ConfigurationException
- if an error occurspublic void setServerConfig(Configuration config) throws Exception
config
- a Configuration
instance
Exception
- if an error occurspublic void initialize() throws Exception
initialize
in interface Initializable
Exception
public void start() throws Exception
start
in interface Startable
Exception
- if an error occurspublic void stop() throws Exception
stop
in interface Startable
Exception
- if an error occurspublic void invoke(org.apache.axis.MessageContext message) throws Exception
SoapServer
invoke
in interface SoapServer
message
- a MessageContext
instance
Exception
- if an error occurspublic org.apache.axis.MessageContext createMessageContext(HttpServletRequest req, HttpServletResponse res, ServletContext con)
createMessageContext
in interface SoapServer
req
- a HttpServletRequest
instanceres
- a HttpServletResponse
instancecon
- a ServletContext
instance
MessageContext
instancepublic org.apache.axis.server.AxisServer createEngine() throws Exception
Exception
protected Map getEngineEnvironment() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |