Package com.avoka.component.sharepoint
Class SPConnection
java.lang.Object
com.avoka.component.sharepoint.SPConnection
Provides a Microsoft SharePoint connection class.
- Since:
- 3.5.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSPConnection
(String username, String password, String serverUrl, String serverDomain) Create a SharePoint connection with the given connection details. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.client.protocol.HttpClientContext
void
setHttpClientContext
(org.apache.http.client.protocol.HttpClientContext context) void
validatedResponse
(HttpResponse response, String targetUrl) Return the SOAP Document from the given HTTP response.
-
Field Details
-
ERROR_INVOKING_SHAREPOINT_INTERFACE
The common SharePoint service error message.- See Also:
-
SOAP_BODY
- See Also:
-
-
Constructor Details
-
SPConnection
public SPConnection(String username, String password, String serverUrl, String serverDomain) throws SPException Create a SharePoint connection with the given connection details.- Parameters:
username
- SharePoint server login usernamepassword
- SharePoint server login passwordserverUrl
- SharePoint server URLserverDomain
- SharePoint server Domain- Throws:
SPException
- in case of SharePoint error response during authentication
-
-
Method Details
-
getHttpClientContext
public org.apache.http.client.protocol.HttpClientContext getHttpClientContext()- Returns:
- the cached HTTP Context instance.
- Since:
- 4.3.0
-
setHttpClientContext
public void setHttpClientContext(org.apache.http.client.protocol.HttpClientContext context) - Parameters:
context
- the HTTP Client Context instance.- Since:
- 4.3.0
-
getServerUrl
- Returns:
- the SharePoint server URL.
-
validatedResponse
Return the SOAP Document from the given HTTP response.- Parameters:
response
- the HTTP SOAP responsetargetUrl
- the SharePoint server URL- Throws:
SPException
- if the response was not valid (not 200 OK)
-