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

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 Details

    • InputStreamInboundPayload

      public InputStreamInboundPayload()
  • Method Details

    • addStream

      public void addStream(String name, InputStream is)
    • parts

      public Iterator<org.glassfish.api.admin.Payload.Part> parts()