Class PayloadImpl.Inbound

java.lang.Object
org.glassfish.admin.payload.PayloadImpl.Inbound
All Implemented Interfaces:
org.glassfish.api.admin.Payload.Inbound
Direct Known Subclasses:
InputStreamInboundPayload, TextPayloadImpl.Inbound
Enclosing class:
PayloadImpl

public abstract static class PayloadImpl.Inbound extends Object implements org.glassfish.api.admin.Payload.Inbound
Partial implementation of the Inbound interface.
  • Constructor Details

    • Inbound

      public Inbound()
  • Method Details

    • newInstance

      public static PayloadImpl.Inbound newInstance(String payloadContentType, InputStream is) throws IOException
      Creates a new Inbound Payload of the given content type, read from the specified InputStream. The payloadContentType should be the content-type from the inbound http request or response.
      Parameters:
      payloadContentType - content-type from the inbound http request or response
      is - the InputStream from which the Payload should be read
      Returns:
      the prepared Payload
      Throws:
      IOException
    • getHeaderName

      public String getHeaderName()
      Specified by:
      getHeaderName in interface org.glassfish.api.admin.Payload.Inbound