org.ow2.jonas.ws.axis2.jaxws
Class Axis2WSEndpoint
java.lang.Object
org.ow2.jonas.ws.axis2.jaxws.Axis2WSEndpoint
- All Implemented Interfaces:
- IWebServiceEndpoint
- Direct Known Subclasses:
- Axis2EJBWebserviceEndpoint
public class Axis2WSEndpoint
- extends Object
- implements IWebServiceEndpoint
This class represents the JOnAS' view on a web service endpoint (server side).
- Author:
- xiaoda
|
Method Summary |
protected void |
configureHandlers()
|
protected AxisServiceGenerator |
createServiceGenerator()
|
void |
displayInfos()
Prints info about the endPoint. |
protected void |
doService(IWSRequest request,
IWSResponse response,
org.apache.axis2.context.MessageContext msgContext)
|
static boolean |
exec(List<String> cmd,
long timeout)
|
static boolean |
execJava(List<String> arguments,
long timeout)
|
static File |
findWsdlFile(File baseDir,
String serviceName)
|
PortIdentifier |
getIdentifier()
|
PortMetaData |
getPortMetaData()
|
static String |
getRelativeNameOrURL(File baseDir,
File file)
|
IWebServiceEndpoint.EndpointType |
getType()
|
void |
init()
|
protected void |
injectEJBResources(Object instance)
|
protected void |
injectHandlers()
|
void |
invoke(IWSRequest request,
IWSResponse response)
|
protected void |
processGETRequest(IWSRequest request,
IWSResponse response,
org.apache.axis2.context.MessageContext msgContext)
|
protected void |
processPOSTRequest(IWSRequest request,
IWSResponse response,
org.apache.axis2.description.AxisService service,
org.apache.axis2.context.MessageContext msgContext)
|
protected void |
processURLRequest(IWSRequest request,
IWSResponse response,
org.apache.axis2.description.AxisService service,
org.apache.axis2.context.MessageContext msgContext)
|
void |
replaceURL(NodeList nodeList,
String url)
|
protected void |
setMsgContextProperties(IWSRequest request,
IWSResponse response,
org.apache.axis2.description.AxisService service,
org.apache.axis2.context.MessageContext msgContext)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configurationContext
protected org.apache.axis2.context.ConfigurationContext configurationContext
service
protected org.apache.axis2.description.AxisService service
binding
protected Binding binding
portMetaData
protected PortMetaData portMetaData
endpointClass
protected Class endpointClass
wsdlQueryHandler
protected WSDLQueryHandler wsdlQueryHandler
factory
protected org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory
moduleURL
protected URL moduleURL
END_POINT_TYPE
public static final String END_POINT_TYPE
- See Also:
- Constant Field Values
Axis2WSEndpoint
public Axis2WSEndpoint(Class endpointClass,
IWebServiceEndpoint.EndpointType type,
PortMetaData portMetaData,
org.ow2.easybeans.container.session.stateless.StatelessSessionFactory factory,
URL moduleURL)
init
public void init()
throws Exception
- Throws:
Exception
getRelativeNameOrURL
public static String getRelativeNameOrURL(File baseDir,
File file)
findWsdlFile
public static File findWsdlFile(File baseDir,
String serviceName)
execJava
public static boolean execJava(List<String> arguments,
long timeout)
throws Exception
- Throws:
Exception
exec
public static boolean exec(List<String> cmd,
long timeout)
throws Exception
- Throws:
Exception
createServiceGenerator
protected AxisServiceGenerator createServiceGenerator()
getType
public IWebServiceEndpoint.EndpointType getType()
- Specified by:
getType in interface IWebServiceEndpoint
getIdentifier
public PortIdentifier getIdentifier()
- Specified by:
getIdentifier in interface IWebServiceEndpoint
- Returns:
- the port identifier of this endpoint.
invoke
public void invoke(IWSRequest request,
IWSResponse response)
throws WSException
- Specified by:
invoke in interface IWebServiceEndpoint
- Throws:
WSException
doService
protected void doService(IWSRequest request,
IWSResponse response,
org.apache.axis2.context.MessageContext msgContext)
throws Exception
- Throws:
Exception
setMsgContextProperties
protected void setMsgContextProperties(IWSRequest request,
IWSResponse response,
org.apache.axis2.description.AxisService service,
org.apache.axis2.context.MessageContext msgContext)
throws IOException
- Throws:
IOException
processURLRequest
protected void processURLRequest(IWSRequest request,
IWSResponse response,
org.apache.axis2.description.AxisService service,
org.apache.axis2.context.MessageContext msgContext)
throws Exception
- Throws:
Exception
processPOSTRequest
protected void processPOSTRequest(IWSRequest request,
IWSResponse response,
org.apache.axis2.description.AxisService service,
org.apache.axis2.context.MessageContext msgContext)
throws Exception
- Throws:
Exception
start
public void start()
- Specified by:
start in interface IWebServiceEndpoint
stop
public void stop()
- Specified by:
stop in interface IWebServiceEndpoint
getPortMetaData
public PortMetaData getPortMetaData()
- Specified by:
getPortMetaData in interface IWebServiceEndpoint
configureHandlers
protected void configureHandlers()
throws UnsupportedEncodingException,
WSException
- Throws:
UnsupportedEncodingException
WSException
injectHandlers
protected void injectHandlers()
throws WSException
- Throws:
WSException
injectEJBResources
protected void injectEJBResources(Object instance)
throws WSException
- Throws:
WSException
processGETRequest
protected void processGETRequest(IWSRequest request,
IWSResponse response,
org.apache.axis2.context.MessageContext msgContext)
throws Exception
- Throws:
Exception
replaceURL
public void replaceURL(NodeList nodeList,
String url)
displayInfos
public void displayInfos()
- Prints info about the endPoint.
- Specified by:
displayInfos in interface IWebServiceEndpoint
Copyright © 2011 OW2 Consortium. All Rights Reserved.