|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectjavaposse.jobdsl.dsl.helpers.UrlTriggerEntryContext
class UrlTriggerEntryContext
Configuration container for a monitored URL.
Nested Class Summary | |
---|---|
enum |
UrlTriggerEntryContext.Check
Enumeration of defined checks |
Property Summary | |
---|---|
java.util.EnumSet |
checks
|
java.lang.Object |
inspections
|
java.lang.Object |
proxyActivated
|
java.lang.Object |
statusCode
|
java.lang.Object |
timeout
|
java.lang.Object |
url
|
Constructor Summary | |
UrlTriggerEntryContext(java.lang.String url)
Creates a new entry for a monitored URL. |
Method Summary | |
---|---|
java.lang.Object
|
check(java.lang.String performCheck)
Enables checks to perform for URL. |
java.lang.Object
|
inspection(java.lang.String type, groovy.lang.Closure inspectionClosure = null)
Adds inspections of the returned content. |
java.lang.Object
|
proxy(boolean active)
Enables/Disables the use of the global proxy that is configured for Jenkins. |
java.lang.Object
|
status(int statusCode)
Define the expected status code of the response. |
java.lang.Object
|
timeout(long timeout)
Defines how many seconds the trigger will wait when checking the URL. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
java.util.EnumSet checks
java.lang.Object inspections
java.lang.Object proxyActivated
java.lang.Object statusCode
java.lang.Object timeout
java.lang.Object url
Constructor Detail |
---|
UrlTriggerEntryContext(java.lang.String url)
url
- Required URL to monitor
Method Detail |
---|
java.lang.Object check(java.lang.String performCheck)
performCheck
- check to perform
java.lang.Object inspection(java.lang.String type, groovy.lang.Closure inspectionClosure = null)
type
- type of inspection to useinspectionClosure
- for configuring RegExps/Path expressions for xml, text and json
java.lang.Object proxy(boolean active)
false
active
- true
to use a proxy
java.lang.Object status(int statusCode)
statusCode
- status code to expect from URL
java.lang.Object timeout(long timeout)
timeout
- number of seconds to wait for response
Groovy Documentation