|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalService
DPWS service.
Contains the methods to use a DPWS 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.
Method Summary | |
---|---|
void |
addEventSource(EventSource event)
Add an event to this service. |
void |
addOperation(Operation operation)
Add an operation to this service. |
void |
addPortType(QName portTypeName)
Add a port type (name) to this service. |
Iterator |
getDescriptionsForPortTypes()
Returns an iterator containing all WSDL documents describing this service. |
boolean |
isRunning()
Returns true , if this local service is currently in the
running state. |
void |
pause()
Pauses service. |
void |
setParentDevice(LocalDevice device)
Sets the parent device for this service. |
void |
start()
Starts this service. |
void |
stop()
Stops this service. |
Methods inherited from interface org.ws4d.java.service.Service |
---|
getAnyEventSource, getAnyOperation, getCertificate, getDescription, getDescriptions, getEprInfos, getEventSource, getEventSource, getEventSources, getEventSources, getOperation, getOperation, getOperations, getOperations, getParentDeviceReference, getPortTypeAttribute, getPortTypeAttributes, getPortTypes, getServiceId, getServiceReference, getStatus, hasPortTypeAttributes, isRemote, isSecure, renew, setCertificate, setSecure, subscribe, unsubscribe |
Methods inherited from interface org.ws4d.java.communication.Bindable |
---|
addBinding, clearBindings, getBindings, hasBindings, removeBinding, supportsBindingChanges |
Method Detail |
---|
void addPortType(QName portTypeName)
portTypeName
- the name of the port type to add.void addOperation(Operation operation)
operation
- operation to add.void addEventSource(EventSource event)
event
- event to add.void start() throws java.io.IOException
java.io.IOException
void pause()
void stop() throws java.io.IOException
java.io.IOException
boolean isRunning()
true
, if this local service is currently in the
running state. Returns false
otherwise.
void setParentDevice(LocalDevice device)
Every service is assigned to one device.
devicet
- the device which the service should be assigned to.Iterator getDescriptionsForPortTypes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |