public interface LocalService extends Service, Bindable
Contains the methods to use a service. Does not care about the location of the service. It possible to use local services created inside the own virtual machine or remote services from other machines.
NO_PARAMETER| Modifier and Type | Method and Description |
|---|---|
void |
addCustomMData(java.lang.String communicationManagerId,
UnknownDataContainer container) |
void |
addEventSource(EventSource event)
Add an event to this service.
|
void |
addOperation(Operation operation)
Add an operation to this service.
|
void |
deviceCommunicationBindingDestroyed(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceCommunicationBindingDown(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceCommunicationBindingUp(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceNewCommunicationBindingAvailable(CommunicationBinding deviceBinding,
CommunicationManager manager) |
void |
deviceStartUpdates() |
void |
deviceStopUpdates() |
AuthorizationManager |
getAuthorizationManager()
Returns the
AuthorizationManager for this LocalService. |
Iterator |
getDescriptionsForPortTypes()
Returns an iterator containing all WSDL documents describing this service.
|
HostedMData |
getHosted()
Returns the
HostedMData of the LocalService. |
LocalDevice |
getParentDevice()
Returns the parent Device of this LocalService.
|
SubscriptionManager |
getSubscriptionManager() |
boolean |
isRunning()
Returns
true, if this local service is currently in the running state. |
void |
pause()
Pauses service.
|
void |
setAuthorizationManager(AuthorizationManager authorizationManager)
Set the
AuthorizationManager for this LocalService. |
void |
setCustomMData(java.lang.String communicationManagerId,
ArrayList customMData)
Set the custom metadata
|
void |
setParentDevice(LocalDevice device)
Sets the parent device for this service.
|
void |
setServiceId(URI serviceId)
Set the serviceId for this local service.
|
void |
start()
Starts this service.
|
void |
stop()
Stops this service.
|
disconnectAllServiceReferences, getAllEventSources, getAllOperations, getCustomMData, getDescription, getDescriptions, getEprInfos, getEventSource, getEventSources, getOperation, getOperations, getParentDeviceReference, getPortTypeAttribute, getPortTypeAttributes, getPortTypes, getServiceId, getServiceReference, getStatus, hasPortTypeAttributes, isRemote, renew, subscribe, unsubscribeaddBinding, addBinding, clearBindings, getCommunicationAutoBindings, getCommunicationBindings, hasCommunicationAutoBindings, hasCommunicationBindings, removeBinding, removeBindingvoid addOperation(Operation operation)
operation - operation to add.void addEventSource(EventSource event)
event - event to add.void start()
throws java.io.IOException
java.io.IOExceptionvoid pause()
void stop() throws java.io.IOException
java.io.IOExceptionboolean isRunning()
true, if this local service is currently in the running state. Returns
false otherwise.LocalDevice getParentDevice()
void setParentDevice(LocalDevice device)
Every service is assigned to one device.
device - the device which the service should be assigned to.Iterator getDescriptionsForPortTypes()
HostedMData getHosted()
HostedMData of the LocalService.void setServiceId(URI serviceId)
serviceId - void setCustomMData(java.lang.String communicationManagerId,
ArrayList customMData)
customMData - String which contains the new custom metadata.void addCustomMData(java.lang.String communicationManagerId,
UnknownDataContainer container)
org.ws4d.java.service.LocalDevice#addCustomMData(UnknownDataContainer)AuthorizationManager getAuthorizationManager()
AuthorizationManager for this LocalService.AuthorizationManager for this LocalService.void setAuthorizationManager(AuthorizationManager authorizationManager)
AuthorizationManager for this LocalService.authorizationManager - void deviceNewCommunicationBindingAvailable(CommunicationBinding deviceBinding, CommunicationManager manager)
void deviceCommunicationBindingDestroyed(CommunicationBinding deviceBinding, CommunicationManager manager)
void deviceCommunicationBindingUp(CommunicationBinding deviceBinding, CommunicationManager manager)
void deviceCommunicationBindingDown(CommunicationBinding deviceBinding, CommunicationManager manager)
void deviceStartUpdates()
void deviceStopUpdates()
SubscriptionManager getSubscriptionManager()