Package org.glassfish.admin.payload
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 Summary
Constructors Constructor Description Inbound()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHeaderName()static PayloadImpl.InboundnewInstance(String payloadContentType, InputStream is)Creates a new Inbound Payload of the given content type, read from the specified InputStream.
-
-
-
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 responseis- the InputStream from which the Payload should be read- Returns:
- the prepared Payload
- Throws:
IOException
-
getHeaderName
public String getHeaderName()
- Specified by:
getHeaderNamein interfaceorg.glassfish.api.admin.Payload.Inbound
-
-