Package org.mozilla.zest.core.v1
Class ZestActionIntercept
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAction
-
- org.mozilla.zest.core.v1.ZestActionIntercept
-
public class ZestActionIntercept extends ZestAction
Intercepts can be used by Man in the Middle proxies to select requests and responses to intercept or break on. They are ignored by this reference implementation.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestActionIntercept()Instantiates a new zest action intercept.ZestActionIntercept(int index)Instantiates a new zest action intercept.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestActionInterceptdeepCopy()Deep copy.Stringinvoke(ZestResponse response, ZestRuntime runtime)Invoke.booleanisPassive()Checks if is passive.-
Methods inherited from class org.mozilla.zest.core.v1.ZestAction
isSameSubclass
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext, setPrev
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Method Detail
-
deepCopy
public ZestActionIntercept deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
invoke
public String invoke(ZestResponse response, ZestRuntime runtime)
Description copied from class:ZestActionInvoke.- Specified by:
invokein classZestAction- Parameters:
response- the response- Returns:
- the string
-
isPassive
public boolean isPassive()
Description copied from class:ZestStatementChecks if is passive.- Specified by:
isPassivein classZestStatement- Returns:
- true, if is passive
-
-