public class AuthenticatedActionFuture extends AuthenticatedFuture<rst.domotic.action.ActionFutureType.ActionFuture,rst.domotic.action.ActionFutureType.ActionFuture>
Constructor and Description |
---|
AuthenticatedActionFuture(Future<rst.domotic.action.ActionFutureType.ActionFuture> applyActionFuture,
rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper ticketAuthenticatorWrapper)
Create a new AuthenticatedActionFuture which uses the default session manager.
|
AuthenticatedActionFuture(Future<rst.domotic.action.ActionFutureType.ActionFuture> applyActionFuture,
rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper ticketAuthenticatorWrapper,
SessionManager sessionManager)
Create a new AuthenticatedActionFuture.
|
Modifier and Type | Method and Description |
---|---|
protected rst.domotic.action.ActionFutureType.ActionFuture |
convertFromInternal(rst.domotic.action.ActionFutureType.ActionFuture internalType)
Method defining how to get the return value from the result of the internal future.
|
protected rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper |
getTicketFromInternal(rst.domotic.action.ActionFutureType.ActionFuture internalType)
Method defining how to get the ticket from the result of the internal future.
|
cancel, get, get, getReturnClass, getSessionManager, isCancelled, isDone
public AuthenticatedActionFuture(Future<rst.domotic.action.ActionFutureType.ActionFuture> applyActionFuture, rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper ticketAuthenticatorWrapper)
applyActionFuture
- The internal future.ticketAuthenticatorWrapper
- The ticket which was used for the request.public AuthenticatedActionFuture(Future<rst.domotic.action.ActionFutureType.ActionFuture> applyActionFuture, rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper ticketAuthenticatorWrapper, SessionManager sessionManager)
applyActionFuture
- The internal future.ticketAuthenticatorWrapper
- The ticket which was used for the request.sessionManager
- The session manager used to verify the response.protected rst.domotic.authentication.TicketAuthenticatorWrapperType.TicketAuthenticatorWrapper getTicketFromInternal(rst.domotic.action.ActionFutureType.ActionFuture internalType)
getTicketFromInternal
in class AuthenticatedFuture<rst.domotic.action.ActionFutureType.ActionFuture,rst.domotic.action.ActionFutureType.ActionFuture>
internalType
- The result from the internal future.protected rst.domotic.action.ActionFutureType.ActionFuture convertFromInternal(rst.domotic.action.ActionFutureType.ActionFuture internalType) throws org.openbase.jul.exception.CouldNotPerformException
convertFromInternal
in class AuthenticatedFuture<rst.domotic.action.ActionFutureType.ActionFuture,rst.domotic.action.ActionFutureType.ActionFuture>
internalType
- The result from the internal future.org.openbase.jul.exception.CouldNotPerformException
- If the conversion from the internal type fails.Copyright © 2017–2018 openbase.org. All rights reserved.