Package org.glassfish.admin.payload
Class InputStreamInboundPayload
- java.lang.Object
-
- org.glassfish.admin.payload.PayloadImpl.Inbound
-
- org.glassfish.admin.payload.InputStreamInboundPayload
-
- All Implemented Interfaces:
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
-
-
Constructor Summary
Constructors Constructor Description InputStreamInboundPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStream(String name, InputStream is)
Iterator<Payload.Part>
parts()
Returns the parts from the inbound payload.-
Methods inherited from class org.glassfish.admin.payload.PayloadImpl.Inbound
getHeaderName, newInstance
-
-
-
-
Method Detail
-
addStream
public void addStream(String name, InputStream is)
-
parts
public Iterator<Payload.Part> parts()
Description copied from interface:Payload.Inbound
Returns the parts from the inbound payload.- Returns:
- Iterator over the inbound Parts
-
-