Class ISServiceCallerImpl
java.lang.Object
cz.metacentrum.perun.core.impl.modules.pwdmgr.ISServiceCallerImpl
- All Implemented Interfaces:
ISServiceCaller
- Author:
- Vojtech Sassmann invalid input: '<'vojtech.sassmann@gmail.com>
-
Field Summary
Fields inherited from interface cz.metacentrum.perun.core.implApi.modules.pwdmgr.ISServiceCaller
IS_ERROR_STATUS, IS_OK_STATUS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSends a request to the IS with the given body.static ISServiceCallerImpl
Makes secure SSL connection to IS MU and perform required password manager actionparseResponse
(InputStream inputStream, int requestID) Parse XML response from IS MU to XML document.
-
Constructor Details
-
ISServiceCallerImpl
public ISServiceCallerImpl()
-
-
Method Details
-
getInstance
-
call
Description copied from interface:ISServiceCaller
Sends a request to the IS with the given body. The received response is returned, with the status code and an error (if some has occurred).- Specified by:
call
in interfaceISServiceCaller
- Parameters:
requestBody
- body of the http request, that will be send (xml format)requestId
- id of the request- Returns:
- response data
- Throws:
IOException
- if the connection to the IS failed
-
makeCall
Makes secure SSL connection to IS MU and perform required password manager action- Parameters:
dataToPass
- XML request bodyrequestId
- unique ID of a request- Returns:
- InputStream response to be parsed
- Throws:
InternalErrorException
IOException
-
parseResponse
Parse XML response from IS MU to XML document.- Parameters:
inputStream
- Stream to be parsed to DocumentrequestID
- ID of request made to IS MU.- Returns:
- XML document for further processing
- Throws:
InternalErrorException
-