java.lang.Object
eu.rarogsoftware.rarog.platform.backdoor.control.BaseControl
Direct Known Subclasses:
ApplicationSettingsControl, PluginsControl, SystemStateHelpers, TomcatControl, UsersControl

public abstract class BaseControl extends Object
  • Constructor Details

    • BaseControl

      protected BaseControl(eu.rarogsoftware.commons.test.webdriver.EnvironmentData environmentData)
  • Method Details

    • sendDelete

      protected org.apache.http.client.methods.CloseableHttpResponse sendDelete(PathFragments path, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • sendDelete

      protected org.apache.http.client.methods.CloseableHttpResponse sendDelete(String url, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • getResponse

      protected org.apache.http.client.methods.CloseableHttpResponse getResponse(String url, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • getEntity

      protected <T> T getEntity(PathFragments url, Class<T> entityType, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • getEntity

      protected <T> T getEntity(String url, Class<T> entityType, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • postEntityReturningEntity

      protected <T> T postEntityReturningEntity(PathFragments path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • postEntityReturningEntity

      protected <T> T postEntityReturningEntity(String path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • postEntity

      protected org.apache.http.client.methods.CloseableHttpResponse postEntity(PathFragments path, Object entity, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • putEntityReturningEntity

      protected <T> T putEntityReturningEntity(PathFragments path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • putEntityReturningEntity

      protected <T> T putEntityReturningEntity(String path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • putEntity

      protected org.apache.http.client.methods.CloseableHttpResponse putEntity(PathFragments path, Object entity, org.apache.http.Header... headers) throws IOException
      Throws:
      IOException
    • basePath

      protected PathFragments basePath()
    • backdoorPath

      protected PathFragments backdoorPath()
    • disableCsrfProtectionHeader

      protected org.apache.http.Header disableCsrfProtectionHeader()
    • adminAuthHeader

      protected org.apache.http.Header adminAuthHeader()