Interface ProxySession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session converts external data into a proxy for use in OSID proxy
managers. The external data is specified in the form of a
ProxyCondition .
-
Method Summary
Modifier and TypeMethodDescriptiongetProxy(ProxyCondition input) Gets a proxy.Gets a proxy condition for acquiring a proxy.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getProxyCondition
Gets a proxy condition for acquiring a proxy. A new proxy condition should be acquired for each proxy request.- Returns:
- a proxy condiiton
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure making request- Compliance:
mandatory- This method is must be implemented.
-
getProxy
Gets a proxy.- Parameters:
input- a proxy condition- Returns:
- a proxy
- Throws:
NullArgumentException-inputisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-inputdid not originate fromgetProxyCondition()- Compliance:
mandatory- This method is must be implemented.
-