|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceReference
Interface of service reference. The service within it can be replaced. Get present service by calling getService() method.
Service references are registered in the DeviceServiceRegistry
. There
should only be one service reference for each service.
ServiceReferenceEventRegistry.registerServiceListening(ServiceListener)
, the method
ServiceReferenceEventRegistry.unregisterServiceListening(ServiceListener)
removes service listening.
Field Summary |
---|
Fields inherited from interface org.ws4d.java.service.reference.Reference |
---|
LOCATION_LOCAL, LOCATION_REMOTE, LOCATION_UNKNOWN |
Method Summary | |
---|---|
boolean |
containsAllPortTypes(QNameSet portTypes)
Returns true only in case this service reference provides
all port types listed within argumentportTypes . |
Iterator |
getEprInfos()
Gets endpoint references. |
Iterator |
getMetadataLocations()
Returns an iterator over the set of URI instances pointing at the
addresses of the target service's metadata description locations (i.e. |
Iterator |
getMetadataReferences()
Returns an iterator over the set of EndpointReference instances
pointing at the locations of the target service's metadata descriptions
(i.e. usually its WSDL files). |
DeviceReference |
getParentDeviceRef()
Returns the parent device reference of the device which hosts the service, if the device is known. |
int |
getPortTypeCount()
Returns the number of port types for this service reference. |
Iterator |
getPortTypes()
Gets service port types. |
Service |
getService()
Gets present service of reference. |
URI |
getServiceId()
Returns the service ID (unique within the scope of its parent device). |
Iterator |
getWSDLs()
Returns an iterator over the set of WSDL instances describing the
target service. |
boolean |
isSecureService()
Returns whether or not the service is secured |
boolean |
isServiceObjectExisting()
Returns whether the service is build up or not. |
void |
reset()
Resets this service reference, i.e. makes it loose all internal state information but the endpoint references of the service. |
Methods inherited from interface org.ws4d.java.service.reference.Reference |
---|
getLocation, getPreferredCommunicationManagerID, getPreferredXAddress |
Method Detail |
---|
Service getService() throws TimeoutException
WSDLRepository
or by sending a get metadata message.
TimeoutException
- This exception is thrown if the remote service
doesn't answer to the get metadata message, which tries to
receive the necessary data to build up the service. The
timeout value can be configured in the
DispatchingProperties
via the method
DispatchingProperties.setResponseWaitTime(int)
.Iterator getEprInfos()
Iterator getPortTypes()
int getPortTypeCount()
boolean containsAllPortTypes(QNameSet portTypes)
true
only in case this service reference provides
all port types listed within argumentportTypes
.
portTypes
- the port types to check this service reference for
true
if all port types are provided by this service
reference, false
otherwiseURI getServiceId()
Iterator getMetadataReferences()
EndpointReference
instances
pointing at the locations of the target service's metadata descriptions
(i.e. usually its WSDL files).
EndpointReference
s to the service's
metadataIterator getMetadataLocations()
URI
instances pointing at the
addresses of the target service's metadata description locations (i.e.
usually its WSDL files).
URI
s to the service's metadataIterator getWSDLs()
WSDL
instances describing the
target service.
WSDL
s containing the service's metadataDeviceReference getParentDeviceRef()
boolean isSecureService()
boolean isServiceObjectExisting()
true
, if service object exists.void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |