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.
-
Constructor Summary
-
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
-
Constructor Details
-
Builder
Constructor.- Parameters:
ctx
- The context object of the Java method being invoked.session
- The REST session object creating this object.
-
-
Method Details
-
logger
Sets the logger to use when logging this call.- Parameters:
value
- The new value for this setting. Can benull .- Returns:
- This 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.
-
build
Description copied from class:ContextSession.Builder
Build the object.- Specified by:
build
in classContextSession.Builder
- Returns:
- The built object.
-