public static class Operations.CompositeOperationBuilder extends OperationBuilder
Modifier and Type | Method and Description |
---|---|
Operations.CompositeOperationBuilder |
addFileAsAttachment(File file)
Associate a file with the operation.
|
Operations.CompositeOperationBuilder |
addInputStream(InputStream in)
Associate an input stream with the operation.
|
Operations.CompositeOperationBuilder |
addStep(ModelNode op)
Adds a new operation to the composite operation.
|
static Operations.CompositeOperationBuilder |
create()
Creates a new builder.
|
static Operations.CompositeOperationBuilder |
create(boolean autoCloseStreams)
Creates a new builder.
|
addFileAsAttachment, build, create, create, getInputStreamCount, setAutoCloseStreams
public static Operations.CompositeOperationBuilder create()
public static Operations.CompositeOperationBuilder create(boolean autoCloseStreams)
autoCloseStreams
- whether streams should be automatically closedpublic Operations.CompositeOperationBuilder addStep(ModelNode op)
build
invocation will result the operation being
appended to and could result in unexpected behaviour.op
- the operation to addpublic Operations.CompositeOperationBuilder addFileAsAttachment(File file)
OperationBuilder
FileInputStream
and add it as attachment.addFileAsAttachment
in class OperationBuilder
file
- the filepublic Operations.CompositeOperationBuilder addInputStream(InputStream in)
OperationBuilder
addInputStream
in class OperationBuilder
in
- the input stream. Cannot be null
Copyright © 2021 JBoss by Red Hat. All rights reserved.