Class SimpleXuaClient
java.lang.Object
org.projecthusky.xua.communication.clients.impl.AbstractSoapClient<List<XUserAssertionResponse>>
org.projecthusky.xua.communication.clients.impl.SimpleXuaClient
- All Implemented Interfaces:
XuaClient
public class SimpleXuaClient
extends AbstractSoapClient<List<XUserAssertionResponse>>
implements XuaClient
Class implementing the simple xua client.
Klasse die den Simple Client implementiert.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleXuaClient
(XuaClientConfig clientConfiguration) Constructor with param. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<XUserAssertionResponse>
parseResponse
(String httpResponse) Method to extract response from XML String.send
(SecurityHeaderElement aSecurityHeaderElement, XUserAssertionRequest aRequest) Method to send an X-User Assertion Request. Methode um einen X-User Assertion Request zu senden.Methods inherited from class org.projecthusky.xua.communication.clients.impl.AbstractSoapClient
createBody, createEnvelope, createHeader, createXmlString, execute, extractResponse, getBoundary, getConfig, getHttpClient, getHttpPost, getLogger, getNode, getRequestConfig, getResponseElement, getSoapException, parseResponseError, setConfig, setLogger
-
Constructor Details
-
SimpleXuaClient
Constructor with param.- Parameters:
clientConfiguration
- the client configuration
-
-
Method Details
-
parseResponse
protected List<XUserAssertionResponse> parseResponse(String httpResponse) throws ClientSendException Description copied from class:AbstractSoapClient
Method to extract response from XML String.- Specified by:
parseResponse
in classAbstractSoapClient<List<XUserAssertionResponse>>
- Parameters:
httpResponse
- XML String- Returns:
- extracted element
- Throws:
ClientSendException
- will be thrown if an error occures.
-
send
public List<XUserAssertionResponse> send(SecurityHeaderElement aSecurityHeaderElement, XUserAssertionRequest aRequest) throws ClientSendException Description copied from interface:XuaClient
Method to send an X-User Assertion Request.Methode um einen X-User Assertion Request zu senden.- Specified by:
send
in interfaceXuaClient
- Parameters:
aSecurityHeaderElement
-the SecurityHeaderElement to be sent.Das SecurityHeaderElement welches geschickt werden soll.aRequest
-the XUserAssertionRequest to be sent.Der XUserAssertionRequest welcher geschickt werden soll.- Returns:
- a list of XUserAssertionResponsesEine Liste von XUserAssertionResponses.
- Throws:
ClientSendException
-will be thrown if an error occoureswird geworfen wenn ein Fehler auftritt.
-