|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.scope.AbstractService
public abstract class AbstractService
All scope services derive from this base class for generic operations
| Field Summary | |
|---|---|
protected ScopeServices |
services
|
| Constructor Summary | |
|---|---|
AbstractService(ScopeServices services,
String version)
|
|
| Method Summary | |
|---|---|
static com.google.protobuf.GeneratedMessage.Builder<?> |
buildPayload(UmsProtos.Response response,
com.google.protobuf.GeneratedMessage.Builder<?> builder)
|
UmsProtos.Response |
executeCommand(ICommand command,
com.google.protobuf.AbstractMessage.Builder<?> builder)
|
UmsProtos.Response |
executeCommand(ICommand command,
com.google.protobuf.AbstractMessage.Builder<?> builder,
long timeout)
|
String |
getVersion()
|
boolean |
isVersionInRange(String version,
String maxVersion,
String serviceName)
Returns true if the given version is less than the maximum given version and greater than the minimum version set in the ScopeServices constructor by OperaDriver. |
static void |
sleep(long timeInMillis)
|
Iterator<?> |
xpathIterator(Collection<?> collection,
String query)
Query a collection JXPath and return a pointer FIXME: This does not belong here! |
org.apache.commons.jxpath.Pointer |
xpathPointer(Collection<?> collection,
String query)
Query a collection JXPath and return a pointer FIXME: This does not belong here! |
Object |
xpathQuery(Collection<?> collection,
String query)
Query a collection with JXPath and return value of node |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ScopeServices services
| Constructor Detail |
|---|
public AbstractService(ScopeServices services,
String version)
| Method Detail |
|---|
public String getVersion()
public static void sleep(long timeInMillis)
public boolean isVersionInRange(String version,
String maxVersion,
String serviceName)
version - Service versionmaxVersion - Maximum version for the serviceserviceName - Name of the service (used for the error message)
public UmsProtos.Response executeCommand(ICommand command,
com.google.protobuf.AbstractMessage.Builder<?> builder)
public UmsProtos.Response executeCommand(ICommand command,
com.google.protobuf.AbstractMessage.Builder<?> builder,
long timeout)
public Object xpathQuery(Collection<?> collection,
String query)
query - a valid XPath query
public org.apache.commons.jxpath.Pointer xpathPointer(Collection<?> collection,
String query)
public Iterator<?> xpathIterator(Collection<?> collection,
String query)
public static final com.google.protobuf.GeneratedMessage.Builder<?> buildPayload(UmsProtos.Response response,
com.google.protobuf.GeneratedMessage.Builder<?> builder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||