Class BaseControl
java.lang.Object
eu.rarogsoftware.rarog.platform.backdoor.control.BaseControl
- Direct Known Subclasses:
ApplicationSettingsControl
,PluginsControl
,SystemStateHelpers
,TomcatControl
,UsersControl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseControl
(eu.rarogsoftware.commons.test.webdriver.EnvironmentData environmentData) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.Header
protected PathFragments
protected PathFragments
basePath()
protected org.apache.http.Header
protected <T> T
getEntity
(PathFragments url, Class<T> entityType, org.apache.http.Header... headers) protected <T> T
protected org.apache.http.client.methods.CloseableHttpResponse
getResponse
(String url, org.apache.http.Header... headers) protected org.apache.http.client.methods.CloseableHttpResponse
postEntity
(PathFragments path, Object entity, org.apache.http.Header... headers) protected <T> T
postEntityReturningEntity
(PathFragments path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) protected <T> T
postEntityReturningEntity
(String path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) protected org.apache.http.client.methods.CloseableHttpResponse
putEntity
(PathFragments path, Object entity, org.apache.http.Header... headers) protected <T> T
putEntityReturningEntity
(PathFragments path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) protected <T> T
putEntityReturningEntity
(String path, Object entity, Class<T> entityTYpe, org.apache.http.Header... headers) protected org.apache.http.client.methods.CloseableHttpResponse
sendDelete
(PathFragments path, org.apache.http.Header... headers) protected org.apache.http.client.methods.CloseableHttpResponse
sendDelete
(String url, org.apache.http.Header... headers)
-
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
-
backdoorPath
-
disableCsrfProtectionHeader
protected org.apache.http.Header disableCsrfProtectionHeader() -
adminAuthHeader
protected org.apache.http.Header adminAuthHeader()
-