public abstract class AbstractService extends Object implements Service
| Modifier and Type | Field and Description |
|---|---|
protected ScopeServices |
services |
| Constructor and Description |
|---|
AbstractService(ScopeServices services,
String name) |
AbstractService(ScopeServices services,
String name,
String requiredVersion) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.GeneratedMessage.Builder<?> |
buildPayload(UmsProtos.Response response,
com.google.protobuf.GeneratedMessage.Builder<?> builder) |
UmsProtos.Response |
executeMessage(Message message) |
UmsProtos.Response |
executeMessage(Message message,
com.google.protobuf.AbstractMessage.Builder<?> builder) |
UmsProtos.Response |
executeMessage(Message message,
com.google.protobuf.AbstractMessage.Builder<?> builder,
long timeout) |
String |
getServiceName()
Gets the name of the service as represented in Opera.
|
String |
getServiceVersion()
Gets the current version of the service.
|
boolean |
isVersionInRange(String requiredVersion) |
static void |
sleep(long ms) |
String |
toString() |
Iterator<?> |
xpathIterator(Collection<?> collection,
String query)
Query a collection JXPath and return a pointer.
|
org.apache.commons.jxpath.Pointer |
xpathPointer(Collection<?> collection,
String query)
Query a collection JXPath and return a pointer.
|
protected final ScopeServices services
public AbstractService(ScopeServices services, String name)
public AbstractService(ScopeServices services, String name, String requiredVersion)
public boolean isVersionInRange(String requiredVersion)
public String getServiceName()
ServicegetServiceName in interface Servicepublic String getServiceVersion()
ServicegetServiceVersion in interface Servicepublic UmsProtos.Response executeMessage(Message message)
public UmsProtos.Response executeMessage(Message message, com.google.protobuf.AbstractMessage.Builder<?> builder)
public UmsProtos.Response executeMessage(Message message, com.google.protobuf.AbstractMessage.Builder<?> builder, long timeout)
public org.apache.commons.jxpath.Pointer xpathPointer(Collection<?> collection, String query)
public Iterator<?> xpathIterator(Collection<?> collection, String query)
public static com.google.protobuf.GeneratedMessage.Builder<?> buildPayload(UmsProtos.Response response, com.google.protobuf.GeneratedMessage.Builder<?> builder)
public static void sleep(long ms)
Copyright © 2012. All Rights Reserved.