Class AHttpPostHandler
java.lang.Object
com.mycompany.abapci.AdtCommunication.AHttpPostHandler
- All Implemented Interfaces:
IHttpPostHandler
- Direct Known Subclasses:
AtcHttpPostHandler
,CoverageHttpPostHandler
,UnittestHttpPostHandler
public abstract class AHttpPostHandler extends Object implements IHttpPostHandler
- Author:
- Andreas Gautsch
-
Field Summary
Fields Modifier and Type Field Description protected TaskListener
_listener
protected String
_sapPackageName
-
Constructor Summary
Constructors Constructor Description AHttpPostHandler(SapConnectionInfo sapConnectionInfo, String packageName, TaskListener listener)
-
Method Summary
Modifier and Type Method Description protected void
AddHeaderForHttpPostRequest(org.apache.http.client.methods.HttpPost httppost, AdtInitialConnectionReponseHeaders adtInitialConnectionResponseHeaders)
protected String
BuildHttpUrl(String path)
org.apache.http.HttpResponse
execute()
org.apache.http.HttpResponse
executeWithToken()
-
Field Details
-
Constructor Details
-
AHttpPostHandler
public AHttpPostHandler(SapConnectionInfo sapConnectionInfo, String packageName, TaskListener listener)
-
-
Method Details
-
executeWithToken
public org.apache.http.HttpResponse executeWithToken() throws MalformedURLException, IOException, HttpCsrfTokenOrCookieCouldNotBeRetrievedException- Specified by:
executeWithToken
in interfaceIHttpPostHandler
- Throws:
MalformedURLException
IOException
HttpCsrfTokenOrCookieCouldNotBeRetrievedException
-
execute
- Specified by:
execute
in interfaceIHttpPostHandler
- Throws:
MalformedURLException
IOException
-
BuildHttpUrl
-
AddHeaderForHttpPostRequest
protected void AddHeaderForHttpPostRequest(org.apache.http.client.methods.HttpPost httppost, AdtInitialConnectionReponseHeaders adtInitialConnectionResponseHeaders) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-