Class WindowsSoapOptions
java.lang.Object
com.oracle.bedrock.runtime.remote.windows.winrm.WindowsSoapOptions
- All Implemented Interfaces:
com.oracle.bedrock.ComposableOption<WindowsSoapOptions>,com.oracle.bedrock.Option
public class WindowsSoapOptions
extends Object
implements com.oracle.bedrock.Option, com.oracle.bedrock.ComposableOption<WindowsSoapOptions>
An
Option that controls various settings in
the SOAP envelope header for a WinRM SOAP message.
Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
- Author:
- Jonathan Knight
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.oracle.bedrock.Option
com.oracle.bedrock.Option.Collectable, com.oracle.bedrock.Option.Collector<C extends com.oracle.bedrock.Option.Collectable,T extends com.oracle.bedrock.Option.Collector<C, T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigIntegerThe default maximum envelope size for SOAP messages.static final DurationThe default timeout value for SOAP messages. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWindowsSoapOptions(Map<WindowsSoapOptions.Type, Object> options) -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowsSoapOptionsbasic()Factory method to create the minimum required set ofWindowsSoapOptions.compose(WindowsSoapOptions other) Obtain the maximum envelope size to use for SOAP messages.Obtain an unmodifiableMapof the options contained within thisWindowsSoapOptions.Obtain the timeout value to use for SOAP messages.Set the maximum SOAP envelope size.withTimeout(long timeout, TimeUnit units) Set the message timeout value.
-
Field Details
-
DEFAULT_MAX_ENVELOPE_SIZE
The default maximum envelope size for SOAP messages. -
DEFAULT_TIMEOUT
The default timeout value for SOAP messages.
-
-
Constructor Details
-
WindowsSoapOptions
-
-
Method Details
-
basic
Factory method to create the minimum required set ofWindowsSoapOptions.- Returns:
- a
WindowsSoapOptionscontaining the minimum set of required options.
-
getOptions
Obtain an unmodifiableMapof the options contained within thisWindowsSoapOptions.- Returns:
- an unmodifiable
Mapof the options contained within thisWindowsSoapOptions
-
withMaxEnvelopeSize
Set the maximum SOAP envelope size.- Parameters:
size- the maximum SOAP envelope size- Returns:
- this
WindowsSoapOptions
-
getMaxEnvelopeSize
Obtain the maximum envelope size to use for SOAP messages.- Returns:
- the maximum envelope size to use for SOAP messages
-
withTimeout
Set the message timeout value.- Parameters:
timeout- the timeout durationunits- the units to apply to the timeout duration- Returns:
- this
WindowsSoapOptions
-
getTimeout
Obtain the timeout value to use for SOAP messages.- Returns:
- the timeout value to use for SOAP messages
-
compose
- Specified by:
composein interfacecom.oracle.bedrock.ComposableOption<WindowsSoapOptions>
-