Package org.glassfish.admin.payload
Class InputStreamInboundPayload
java.lang.Object
org.glassfish.admin.payload.PayloadImpl.Inbound
org.glassfish.admin.payload.InputStreamInboundPayload
- All Implemented Interfaces:
org.glassfish.api.admin.Payload.Inbound
Implementation of a Payload.Inbound that works with InputStreams
Usage is like this:
CommandRunner.CommandInvocation ci =
commandRunner.getCommandInvocation("some-command", areport, theSubject);
InputStreamPayload in = new InputStreamInboundPayload();
// get an InputStream is from somewhere
in.addStream("someoption", is)
// get another InputStream for the operand
in.addStream("DEFAULT", is)
ParameterMap map = new ParameterMap();
// populate map with other options
ci.inbound(in).parameters(map).execute();
- Author:
- Tom Mueller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStream(String name, InputStream is) Iterator<org.glassfish.api.admin.Payload.Part> parts()Methods inherited from class org.glassfish.admin.payload.PayloadImpl.Inbound
getHeaderName, newInstance
-
Constructor Details
-
InputStreamInboundPayload
public InputStreamInboundPayload()
-
-
Method Details
-
addStream
-
parts
-