Package org.apache.juneau
Class ContextSession
java.lang.Object
org.apache.juneau.ContextSession
- Direct Known Subclasses:
- BeanSession,- RestOpSession,- RestSession
A one-time-use non-thread-safe object that's meant to be used once and then thrown away.
 
Notes:
- This class is not typically thread safe.
See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedContextSession(ContextSession.Builder builder) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddWarning(String msg, Object... args) Logs a warning message.voidThrows aBeanRuntimeExceptionif any warnings occurred in this session and debug is enabled.Returns the context that created this session.final JsonMapReturns the session properties on this session.Returns the warnings that occurred in this session.booleanisDebug()Debug mode enabled.protected JsonMapReturns the properties on this bean as a map for debugging.toString()
- 
Constructor Details- 
ContextSessionDefault constructor.- Parameters:
- builder- The builder for this object
 
 
- 
- 
Method Details- 
getSessionPropertiesReturns the session properties on this session.- Returns:
- The session properties on this session.  Never null .
 
- 
getContextReturns the context that created this session.- Returns:
- The context that created this session.
 
- 
addWarningLogs a warning message.- Parameters:
- msg- The warning message.
- args- Optional- MessageFormat-style arguments.
 
- 
getWarningsReturns the warnings that occurred in this session.- Returns:
- The warnings that occurred in this session, or null if no warnings occurred.
 
- 
checkForWarningsThrows aBeanRuntimeExceptionif any warnings occurred in this session and debug is enabled.
- 
isDebugDebug mode enabled.- Returns:
- true if debug mode is enabled.
- See Also:
 
- 
propertiesReturns the properties on this bean as a map for debugging.- Returns:
- The properties on this bean as a map for debugging.
 
- 
toString
 
-