Package org.somda.sdc.dpws.service
Class HostingServiceInterceptor
java.lang.Object
org.somda.sdc.dpws.service.HostingServiceInterceptor
- All Implemented Interfaces:
HostingService,Interceptor
Server interceptor for hosting services to serve WS-TransferGet requests.
HostingServiceInterceptor acts as a HostingService implementation at the same time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHostedService(HostedService hostedService) Adds a hosted service to this hosting service.Gets the unique WS-Discovery target service EPR.Gets registered hosted services.org.somda.sdc.dpws.model.ThisDeviceTypeGets ThisDevice information.org.somda.sdc.dpws.model.ThisModelTypeGets ThisModel information.Gets the XAddrs list of the hosting service.voidsetThisDevice(org.somda.sdc.dpws.model.ThisDeviceType thisDevice) Set ThisDevice information as defined in DPWS.voidsetThisModel(org.somda.sdc.dpws.model.ThisModelType thisModel) Sets ThisModel information as defined in DPWS.toString()
-
Method Details
-
getXAddrs
Description copied from interface:HostingServiceGets the XAddrs list of the hosting service.- Specified by:
getXAddrsin interfaceHostingService- Returns:
- Physical addresses the hosting service is reachable from. Forwards addresses from WS-Discovery XAddr field.
- See Also:
-
getEndpointReferenceAddress
Description copied from interface:HostingServiceGets the unique WS-Discovery target service EPR.As defined in dpws:R0004, the URI is a UUID IRI.
- Specified by:
getEndpointReferenceAddressin interfaceHostingService- Returns:
- the EPR address.
- See Also:
-
getThisModel
public org.somda.sdc.dpws.model.ThisModelType getThisModel()Description copied from interface:HostingServiceGets ThisModel information.- Specified by:
getThisModelin interfaceHostingService- Returns:
- ThisModel information as defined in DPWS.
- See Also:
-
setThisModel
public void setThisModel(org.somda.sdc.dpws.model.ThisModelType thisModel) Description copied from interface:HostingServiceSets ThisModel information as defined in DPWS.- Specified by:
setThisModelin interfaceHostingService- Parameters:
thisModel- ThisModel information.- See Also:
-
getThisDevice
public org.somda.sdc.dpws.model.ThisDeviceType getThisDevice()Description copied from interface:HostingServiceGets ThisDevice information.- Specified by:
getThisDevicein interfaceHostingService- Returns:
- ThisDevice information as defined in DPWS.
- See Also:
-
setThisDevice
public void setThisDevice(org.somda.sdc.dpws.model.ThisDeviceType thisDevice) Description copied from interface:HostingServiceSet ThisDevice information as defined in DPWS.- Specified by:
setThisDevicein interfaceHostingService- Parameters:
thisDevice- ThisDevice information.- See Also:
-
addHostedService
Description copied from interface:HostingServiceAdds a hosted service to this hosting service.Use
HostedServiceFactoryto create suitableHostedServiceinstances.- Specified by:
addHostedServicein interfaceHostingService- Parameters:
hostedService- the hosted service to add.- See Also:
-
getHostedServices
Description copied from interface:HostingServiceGets registered hosted services.- Specified by:
getHostedServicesin interfaceHostingService- Returns:
- a list of all registered hosted services.
- See Also:
-
toString
-