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>
AnOptionthat 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 Classes Modifier and Type Class Description static classWindowsSoapOptions.TypeEnum description
-
Field Summary
Fields Modifier and Type Field Description static BigIntegerDEFAULT_MAX_ENVELOPE_SIZEThe default maximum envelope size for SOAP messages.static DurationDEFAULT_TIMEOUTThe default timeout value for SOAP messages.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsSoapOptions(Map<WindowsSoapOptions.Type,Object> options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsSoapOptionsbasic()Factory method to create the minimum required set ofWindowsSoapOptions.WindowsSoapOptionscompose(WindowsSoapOptions other)BigIntegergetMaxEnvelopeSize()Obtain the maximum envelope size to use for SOAP messages.Map<WindowsSoapOptions.Type,Object>getOptions()Obtain an unmodifiableMapof the options contained within thisWindowsSoapOptions.DurationgetTimeout()Obtain the timeout value to use for SOAP messages.WindowsSoapOptionswithMaxEnvelopeSize(BigInteger size)Set the maximum SOAP envelope size.WindowsSoapOptionswithTimeout(long timeout, TimeUnit units)Set the message timeout value.
-
-
-
Field Detail
-
DEFAULT_MAX_ENVELOPE_SIZE
public static final BigInteger DEFAULT_MAX_ENVELOPE_SIZE
The default maximum envelope size for SOAP messages.
-
DEFAULT_TIMEOUT
public static final Duration DEFAULT_TIMEOUT
The default timeout value for SOAP messages.
-
-
Constructor Detail
-
WindowsSoapOptions
protected WindowsSoapOptions(Map<WindowsSoapOptions.Type,Object> options)
-
-
Method Detail
-
basic
public static WindowsSoapOptions basic()
Factory method to create the minimum required set ofWindowsSoapOptions.- Returns:
- a
WindowsSoapOptionscontaining the minimum set of required options.
-
getOptions
public Map<WindowsSoapOptions.Type,Object> getOptions()
Obtain an unmodifiableMapof the options contained within thisWindowsSoapOptions.- Returns:
- an unmodifiable
Mapof the options contained within thisWindowsSoapOptions
-
withMaxEnvelopeSize
public WindowsSoapOptions withMaxEnvelopeSize(BigInteger size)
Set the maximum SOAP envelope size.- Parameters:
size- the maximum SOAP envelope size- Returns:
- this
WindowsSoapOptions
-
getMaxEnvelopeSize
public BigInteger getMaxEnvelopeSize()
Obtain the maximum envelope size to use for SOAP messages.- Returns:
- the maximum envelope size to use for SOAP messages
-
withTimeout
public WindowsSoapOptions withTimeout(long timeout, TimeUnit units)
Set the message timeout value.- Parameters:
timeout- the timeout durationunits- the units to apply to the timeout duration- Returns:
- this
WindowsSoapOptions
-
getTimeout
public Duration getTimeout()
Obtain the timeout value to use for SOAP messages.- Returns:
- the timeout value to use for SOAP messages
-
compose
public WindowsSoapOptions compose(WindowsSoapOptions other)
- Specified by:
composein interfacecom.oracle.bedrock.ComposableOption<WindowsSoapOptions>
-
-