Package com.jsql.model.accessible
Class CallableHttpHead
java.lang.Object
com.jsql.model.accessible.CallableHttpHead
- All Implemented Interfaces:
Callable<CallableHttpHead>
Thread unit to test if an administration page exists on the server.
The process can be cancelled by the user.
-
Constructor Summary
ConstructorDescriptionCallableHttpHead
(String urlAdminPage, InjectionModel injectionModel, String metadataInjectionProcess) Create a callable to find admin page. -
Method Summary
-
Constructor Details
-
CallableHttpHead
public CallableHttpHead(String urlAdminPage, InjectionModel injectionModel, String metadataInjectionProcess) Create a callable to find admin page.- Parameters:
urlAdminPage
- URL of admin page
-
-
Method Details
-
call
Call URL to a administration page in HEAD mode and send the result back to view.- Specified by:
call
in interfaceCallable<CallableHttpHead>
-
isHttpResponseOk
public boolean isHttpResponseOk()Check if HTTP response is either 2xx or 3xx, which corresponds to a acceptable response from the website.- Returns:
- true if HTTP code start with 2 or 3
-
getUrl
-