- All Implemented Interfaces:
- org.glassfish.api.admin.Payload.Inbound
public class InputStreamInboundPayload
extends PayloadImpl.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