Class HttpUrlChecker
java.lang.Object
org.ametys.plugins.core.impl.checker.HttpUrlChecker
- All Implemented Interfaces:
ItemChecker
,Configurable
Checks if the url written is correct and if it allows to establish a connection with the given configuration.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks the validity of the parameters.void
configure
(Configuration configuration)
-
Field Details
-
_userAgent
The user agent -
_method
The method -
_timeout
The timeout -
_okCodes
The acceptable response codes -
_requestHeaderValues
The values the header must have -
_responseHeaderValues
The values the header must have -
_additionnalURL
Something to add to the parameter
-
-
Constructor Details
-
HttpUrlChecker
public HttpUrlChecker()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
check
Description copied from interface:ItemChecker
Checks the validity of the parameters.- Specified by:
check
in interfaceItemChecker
- Parameters:
values
- the values to test- Throws:
ItemCheckerTestFailureException
- if the test failed
-