|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.service.ServiceCommons org.ws4d.java.service.ProxyService
public class ProxyService
Proxy class of a dpws service.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.ws4d.java.service.ServiceCommons |
---|
ServiceCommons.OperationSignature, ServiceCommons.PortType |
Constructor Summary | |
---|---|
ProxyService(ServiceReference serviceReference)
|
Method Summary | |
---|---|
void |
appendPortTypes(QNameSet portTypes)
|
WSDL |
getDescription(java.lang.String targetNamespace)
Returns a WSDL document describing this service by the given namespace. |
Iterator |
getEprInfos()
Returns an iterator of EprInfo . |
DeviceReference |
getParentDeviceReference()
Gets device reference of parent device. |
int |
getPortTypeCount()
|
Iterator |
getPortTypes()
Gets service port types. |
URI |
getServiceId()
Gets service id |
ServiceReference |
getServiceReference()
Gets the service reference. |
long |
getStatus(ClientSubscription subscription)
Returns the duration in milliseconds until expiration of the specified client subscription. |
boolean |
isRemote()
Is the service remote (proxy) or local? |
long |
renew(ClientSubscription subscription,
long duration)
Renews an existing subscription with new duration. |
ClientSubscription |
subscribe(EventSink sink,
java.lang.String clientSubscriptionId,
URISet eventActionURIs,
long duration)
Initializes event receiving from specified event sender. |
void |
unsubscribe(ClientSubscription subscription)
Unsubscribes from specified subscription. |
Methods inherited from class org.ws4d.java.service.ServiceCommons |
---|
getAnyEventSource, getAnyOperation, getCertificate, getDescriptions, getEventSource, getEventSource, getEventSources, getEventSources, getOperation, getOperation, getOperations, getOperations, getPortTypeAttribute, getPortTypeAttributes, getPrivateKey, hasPortTypeAttributes, isSecure, setCertificate, setPortTypeAttribute, setPortTypeAttributes, setPrivateKey, setSecure, setSecureService, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProxyService(ServiceReference serviceReference) throws MissingMetadataException
serviceReference
-
MissingMetadataException
- in case no service description metadata
(i.e. WSDL) was found for at least one of the service's port
typesMethod Detail |
---|
public ServiceReference getServiceReference()
Service
public DeviceReference getParentDeviceReference()
Service
null
in case this service doesn't reside on a device or its
underlying device is not known at this time.
null
public boolean isRemote()
Service
public URI getServiceId()
Service
public Iterator getEprInfos()
Service
EprInfo
.
EprInfo
.public Iterator getPortTypes()
Service
public int getPortTypeCount()
public void appendPortTypes(QNameSet portTypes) throws MissingMetadataException
portTypes
- new port types to add to this proxy service
MissingMetadataException
- if no metadata (WSDL) is found for at
least one of the specified portTypes
public ClientSubscription subscribe(EventSink sink, java.lang.String clientSubscriptionId, URISet eventActionURIs, long duration) throws EventingException, TimeoutException
sink
- event sink which will receive the notifications.clientSubscriptionId
- eventActionURIs
- set of action URIs to subscribe to.duration
- duration in milliseconds of subscription. If 0 no
expiration of subscription.
EventingException
TimeoutException
public void unsubscribe(ClientSubscription subscription) throws EventingException, TimeoutException
subscription
- subscription to terminate.
EventingException
TimeoutException
public long renew(ClientSubscription subscription, long duration) throws EventingException, TimeoutException
subscription
- duration
-
0
if the subscription doesn't expire at
all
EventingException
TimeoutException
public long getStatus(ClientSubscription subscription) throws EventingException, TimeoutException
Service
EventingException
TimeoutException
public WSDL getDescription(java.lang.String targetNamespace)
Service
targetNamespace
- the namespace.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |