|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceReferenceInternal
Interface covers the methods used internally to manage service references.
Field Summary |
---|
Fields inherited from interface org.ws4d.java.service.reference.Reference |
---|
LOCATION_LOCAL, LOCATION_REMOTE, LOCATION_UNKNOWN |
Method Summary | |
---|---|
void |
disconnectFromDevice()
Removes the parent device reference from this service reference. |
XAddressInfo |
getNextXAddressInfoAfterFailure(URI transportAddress)
|
XAddressInfo |
getPreferredXAddressInfo()
|
Service |
getService(boolean doBuildUp)
Gets present service of reference. |
void |
setLocation(int location)
Location of service, which this reference is linked to. |
void |
setMetaDataLocations(URISet metaLocs)
|
void |
setMetadataReferences(EndpointReferenceSet metaRefs)
Updates metadata references. |
void |
setParentDeviceReference(DeviceReference devRef)
|
Service |
setService(LocalService service,
HostedMData hosted)
Sets local service, replaces present service. |
void |
setWSDLs(DataStructure wsdls)
Updates WSDLs linked to this service |
void |
update(HostedMData newHostedBlock,
DeviceReference devRef,
ProtocolData protocolData)
Update service references with hosted metadata. |
Methods inherited from interface org.ws4d.java.service.reference.ServiceReference |
---|
containsAllPortTypes, getEprInfos, getMetadataLocations, getMetadataReferences, getParentDeviceRef, getPortTypeCount, getPortTypes, getService, getServiceId, getWSDLs, isSecureService, isServiceObjectExisting, reset |
Methods inherited from interface org.ws4d.java.service.reference.Reference |
---|
getLocation, getPreferredCommunicationManagerID, getPreferredXAddress |
Method Detail |
---|
Service getService(boolean doBuildUp) throws TimeoutException
WSDLRepository
or by sending a get metadata message.
doBuildUp
- If false
and service does not exist,
service will not be build up. In this case, returned service
is null
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)
.Service setService(LocalService service, HostedMData hosted)
service
- replacement service.hosted
- the hosted block of the service
void update(HostedMData newHostedBlock, DeviceReference devRef, ProtocolData protocolData)
endpoint
- Endpoint references to set.void disconnectFromDevice()
void setParentDeviceReference(DeviceReference devRef)
devRef
- void setLocation(int location)
Reference.LOCATION_LOCAL
,
Reference.LOCATION_REMOTE
or
Reference.LOCATION_UNKNOWN
location
- Reference.LOCATION_LOCAL
,
Reference.LOCATION_REMOTE
or
Reference.LOCATION_UNKNOWN
.void setMetaDataLocations(URISet metaLocs)
metaLocs
- void setMetadataReferences(EndpointReferenceSet metaRefs)
metaRefs
- void setWSDLs(DataStructure wsdls)
wsdls
- XAddressInfo getPreferredXAddressInfo() throws TimeoutException
TimeoutException
XAddressInfo getNextXAddressInfoAfterFailure(URI transportAddress) throws TimeoutException
TimeoutException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |