Package org.glassfish.admin.payload
Class PayloadImpl.Inbound
- java.lang.Object
-
- org.glassfish.admin.payload.PayloadImpl.Inbound
-
- All Implemented Interfaces:
Payload.Inbound
- Direct Known Subclasses:
InputStreamInboundPayload
,RestPayloadImpl.Inbound
,TextPayloadImpl.Inbound
- Enclosing class:
- PayloadImpl
public abstract static class PayloadImpl.Inbound extends Object implements 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 String
getHeaderName()
Returns the name of the header that should be set in the outgoing and incoming http request or response.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
-
-
-
-
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()
Description copied from interface:Payload.Inbound
Returns the name of the header that should be set in the outgoing and incoming http request or response.- Specified by:
getHeaderName
in interfacePayload.Inbound
- Returns:
- the header name
-
-