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 -
Method Summary
Modifier and TypeMethodDescriptionstatic PayloadImpl.InboundnewInstance(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, waitMethods inherited from interface org.glassfish.api.admin.Payload.Inbound
parts
-
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 responseis- the InputStream from which the Payload should be read- Returns:
- the prepared Payload
- Throws:
IOException
-
getHeaderName
- Specified by:
getHeaderNamein interfaceorg.glassfish.api.admin.Payload.Inbound
-