org.glassfish.admin.payload
Class PayloadImpl.Inbound

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

public abstract static class PayloadImpl.Inbound
extends Object
implements Payload.Inbound

Partial implementation of the Inbound interface.


Constructor Summary
PayloadImpl.Inbound()
           
 
Method Summary
 String getHeaderName()
           
static PayloadImpl.Inbound newInstance(String payloadContentType, InputStream is)
          Creates a new Inbound Payload of the given content type, read from the specified InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glassfish.api.admin.Payload.Inbound
parts
 

Constructor Detail

PayloadImpl.Inbound

public PayloadImpl.Inbound()
Method Detail

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 Payload.Inbound


Copyright © 2012 GlassFish Community. All Rights Reserved.