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_listenerprotected String_sapPackageName -
Constructor Summary
Constructors Constructor Description AHttpPostHandler(SapConnectionInfo sapConnectionInfo, String packageName, TaskListener listener) -
Method Summary
Modifier and Type Method Description protected voidAddHeaderForHttpPostRequest(org.apache.http.client.methods.HttpPost httppost, AdtInitialConnectionReponseHeaders adtInitialConnectionResponseHeaders)protected StringBuildHttpUrl(String path)org.apache.http.HttpResponseexecute()org.apache.http.HttpResponseexecuteWithToken()
-
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:
executeWithTokenin interfaceIHttpPostHandler- Throws:
MalformedURLExceptionIOExceptionHttpCsrfTokenOrCookieCouldNotBeRetrievedException
-
execute
- Specified by:
executein interfaceIHttpPostHandler- Throws:
MalformedURLExceptionIOException
-
BuildHttpUrl
-
AddHeaderForHttpPostRequest
protected void AddHeaderForHttpPostRequest(org.apache.http.client.methods.HttpPost httppost, AdtInitialConnectionReponseHeaders adtInitialConnectionResponseHeaders) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-