Class CallableHttpHead

java.lang.Object
com.jsql.model.accessible.CallableHttpHead
All Implemented Interfaces:
Callable<CallableHttpHead>

public class CallableHttpHead extends Object implements Callable<CallableHttpHead>
Thread unit to test if an administration page exists on the server. The process can be cancelled by the user.
  • 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

      public CallableHttpHead call()
      Call URL to a administration page in HEAD mode and send the result back to view.
      Specified by:
      call in interface Callable<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

      public String getUrl()