Package org.apache.juneau.rest
Class RestOpSession.Builder
java.lang.Object
org.apache.juneau.ContextSession.Builder
org.apache.juneau.rest.RestOpSession.Builder
- Direct Known Subclasses:
RrpcRestOpSession.Builder
- Enclosing class:
- RestOpSession
Builder class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.debug(boolean value) Enables or disabled debug mode on this call.logger(CallLogger value) Sets the logger to use when logging this call.Methods inherited from class org.apache.juneau.ContextSession.Builder
apply, debug, properties, property, unmodifiable
-
Field Details
-
ctx
-
session
-
-
Constructor Details
-
Builder
Constructor.- Parameters:
ctx- The context object of the Java method being invoked.
Cannot benull .session- The REST session object creating this object.
Cannot benull .
-
-
Method Details
-
build
Description copied from class:ContextSession.BuilderBuild the object.- Specified by:
buildin classContextSession.Builder- Returns:
- The built object.
-
debug
Enables or disabled debug mode on this call.- Parameters:
value- The new value for this setting.- Returns:
- This object.
- Throws:
IOException- Occurs if request content could not be cached into memory.
-
logger
Sets the logger to use when logging this call.- Parameters:
value- The new value for this setting.
Can benull (will use the default logger from the context if available).- Returns:
- This object.
-