soaprmi.server
Class Services
java.lang.Object
soaprmi.server.Services
- Direct Known Subclasses:
- HttpConnectionSoapServices, SecureSoapServices, SoapServices
- public class Services
- extends java.lang.Object
Define entry points to web services.
- Version:
- $Revision: 1.15 $
- Author:
- Aleksander Slominski
|
Method Summary |
void |
addDefaultDispatcher()
this is a hook method used by susclasses to register
default dsipatcher if class user did not set any dispatchers |
void |
addDispatcher(Dispatcher dsptr)
|
void |
addInvoker(Invoker invkr)
|
java.lang.String |
createGUID()
Generate "pesudo" unique identifier - current algorithm is
is concatinating: time in milliseconds, random integer and
incremented counter; in futire it shoiuld use real UUID... |
Port |
createPort(java.lang.String name,
java.lang.Class[] interfaces,
java.lang.Object impl)
|
Port |
createPort(java.lang.String name,
java.lang.Class iface,
java.lang.Object impl)
|
RemoteRef |
createStartpoint(Port port)
|
RemoteRef |
createStartpoint(Port port,
java.lang.Class[] interfaces)
|
RemoteRef |
createStartpoint(java.lang.String serviceUrl,
java.lang.Class[] interfaces)
|
RemoteRef |
createStartpoint(java.lang.String serviceUrl,
java.lang.Class[] interfaces,
java.lang.String endpointBindingName)
|
RemoteRef |
createStartpoint(java.lang.String serviceUrl,
java.lang.Class[] interfaces,
java.lang.String endpointBindingName,
SoapStyle style,
java.lang.String soapAction)
|
RemoteRef |
createStartpointFromXml(java.lang.String portXml)
|
int |
dispatchersSize()
|
static ConnectionContext |
getConnectionContext()
|
XmlJavaMapping |
getMapping()
|
Port[] |
getPorts()
|
java.lang.String |
getStartpointLocation(Remote ref)
|
int |
getStartpointLocationPort(Remote ref)
|
java.lang.String |
getStartpointXml(Remote ref)
|
RemoteRef |
loadStartpoint(java.lang.Class klass,
java.lang.String portLocation,
java.lang.Class[] interfaces)
|
void |
saveStartpoint(Remote remote,
java.io.Writer writer)
|
void |
setDispatcher(Dispatcher dsptr)
|
void |
setInvoker(Invoker invkr)
|
void |
setMapping(XmlJavaMapping value)
|
void |
setStartpointLocation(Remote ref,
java.lang.String loc)
|
Remote |
wrapService(java.lang.Object objectToWrap,
java.lang.reflect.InvocationHandler invokerToChain)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GUIDrandom
public static java.util.Random GUIDrandom
getConnectionContext
public static ConnectionContext getConnectionContext()
wrapService
public Remote wrapService(java.lang.Object objectToWrap,
java.lang.reflect.InvocationHandler invokerToChain)
getMapping
public XmlJavaMapping getMapping()
setMapping
public void setMapping(XmlJavaMapping value)
getPorts
public Port[] getPorts()
createPort
public Port createPort(java.lang.String name,
java.lang.Class iface,
java.lang.Object impl)
throws ServerException,
AlreadyBoundException
- Throws:
ServerException
AlreadyBoundException
addDefaultDispatcher
public void addDefaultDispatcher()
throws java.io.IOException,
RemoteException
- this is a hook method used by susclasses to register
default dsipatcher if class user did not set any dispatchers
- Throws:
java.io.IOException
RemoteException
createPort
public Port createPort(java.lang.String name,
java.lang.Class[] interfaces,
java.lang.Object impl)
throws ServerException,
AlreadyBoundException
- Throws:
ServerException
AlreadyBoundException
createStartpoint
public RemoteRef createStartpoint(Port port)
throws RemoteException
- Throws:
RemoteException
createStartpoint
public RemoteRef createStartpoint(java.lang.String serviceUrl,
java.lang.Class[] interfaces)
throws RemoteException
- Throws:
RemoteException
createStartpoint
public RemoteRef createStartpoint(java.lang.String serviceUrl,
java.lang.Class[] interfaces,
java.lang.String endpointBindingName)
throws RemoteException
- Throws:
RemoteException
createStartpoint
public RemoteRef createStartpoint(java.lang.String serviceUrl,
java.lang.Class[] interfaces,
java.lang.String endpointBindingName,
SoapStyle style,
java.lang.String soapAction)
throws RemoteException
- Throws:
RemoteException
createStartpoint
public RemoteRef createStartpoint(Port port,
java.lang.Class[] interfaces)
throws RemoteException
- Throws:
RemoteException
createStartpointFromXml
public RemoteRef createStartpointFromXml(java.lang.String portXml)
throws RemoteException
- Throws:
RemoteException
getStartpointLocation
public java.lang.String getStartpointLocation(Remote ref)
throws RemoteException
- Throws:
RemoteException
getStartpointLocationPort
public int getStartpointLocationPort(Remote ref)
throws RemoteException
- Throws:
RemoteException
getStartpointXml
public java.lang.String getStartpointXml(Remote ref)
throws RemoteException
- Throws:
RemoteException
setStartpointLocation
public void setStartpointLocation(Remote ref,
java.lang.String loc)
throws RemoteException
- Throws:
RemoteException
loadStartpoint
public RemoteRef loadStartpoint(java.lang.Class klass,
java.lang.String portLocation,
java.lang.Class[] interfaces)
throws RemoteException,
java.io.IOException
- Throws:
RemoteException
java.io.IOException
saveStartpoint
public void saveStartpoint(Remote remote,
java.io.Writer writer)
throws RemoteException,
java.io.IOException
- Throws:
RemoteException
java.io.IOException
dispatchersSize
public int dispatchersSize()
addDispatcher
public void addDispatcher(Dispatcher dsptr)
addInvoker
public void addInvoker(Invoker invkr)
setDispatcher
public void setDispatcher(Dispatcher dsptr)
setInvoker
public void setInvoker(Invoker invkr)
createGUID
public java.lang.String createGUID()
- Generate "pesudo" unique identifier - current algorithm is
is concatinating: time in milliseconds, random integer and
incremented counter; in futire it shoiuld use real UUID...
Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.