Class HostingServiceInterceptor
-
- All Implemented Interfaces:
-
org.somda.sdc.dpws.service.HostingService,org.somda.sdc.dpws.soap.interception.Interceptor
public class HostingServiceInterceptor implements HostingService
Server interceptor for hosting services to serve WS-TransferGet requests.
HostingServiceInterceptor acts as a HostingService implementation at the same time.
-
-
Field Summary
Fields Modifier and Type Field Description public final List<HostedService>hostedServicespublic ThisModelTypethisModelpublic ThisDeviceTypethisDevice
-
Method Summary
Modifier and Type Method Description List<HostedService>getHostedServices()Gets registered hosted services. ThisModelTypegetThisModel()Gets ThisModel information. voidsetThisModel(ThisModelType thisModel)Sets ThisModel information as defined in DPWS. ThisDeviceTypegetThisDevice()Gets ThisDevice information. voidsetThisDevice(ThisDeviceType thisDevice)Set ThisDevice information as defined in DPWS. List<String>getXAddrs()Gets the XAddrs list of the hosting service. StringgetEndpointReferenceAddress()Gets the unique WS-Discovery target service EPR. voidaddHostedService(HostedService hostedService)Adds a hosted service to this hosting service. StringtoString()-
-
Method Detail
-
getHostedServices
List<HostedService> getHostedServices()
Gets registered hosted services.
- Returns:
a list of all registered hosted services.
-
getThisModel
ThisModelType getThisModel()
Gets ThisModel information.
- Returns:
ThisModel information as defined in DPWS.
-
setThisModel
void setThisModel(ThisModelType thisModel)
Sets ThisModel information as defined in DPWS.
- Parameters:
thisModel- ThisModel information.
-
getThisDevice
ThisDeviceType getThisDevice()
Gets ThisDevice information.
- Returns:
ThisDevice information as defined in DPWS.
-
setThisDevice
void setThisDevice(ThisDeviceType thisDevice)
Set ThisDevice information as defined in DPWS.
- Parameters:
thisDevice- ThisDevice information.
-
getXAddrs
List<String> getXAddrs()
Gets the XAddrs list of the hosting service.
- Returns:
Physical addresses the hosting service is reachable from. Forwards addresses from WS-Discovery XAddr field.
-
getEndpointReferenceAddress
String getEndpointReferenceAddress()
Gets the unique WS-Discovery target service EPR.
As defined in dpws:R0004, the URI is a UUID IRI.
- Returns:
the EPR address.
-
addHostedService
void addHostedService(HostedService hostedService)
Adds a hosted service to this hosting service.
Use HostedServiceFactory to create suitable HostedService instances.
- Parameters:
hostedService- the hosted service to add.
-
-
-
-