Package com.sun.enterprise.admin.remote
Class RestPayloadImpl.Outbound
- java.lang.Object
-
- org.glassfish.admin.payload.PayloadImpl.Outbound
-
- com.sun.enterprise.admin.remote.RestPayloadImpl.Outbound
-
- All Implemented Interfaces:
Payload.Outbound
- Enclosing class:
- RestPayloadImpl
public static class RestPayloadImpl.Outbound extends PayloadImpl.Outbound
-
-
Constructor Summary
Constructors Constructor Description Outbound(boolean client2Server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComplexContentType()Returns the Content-Type which reflects that multiple Parts will be in the Payload.protected voidwritePartsTo(OutputStream os)Writes the Parts in this Outbound Payload to the specified output stream; concrete implementations will implement this abstract method.voidwriteTo(OutputStream os)Writes the Payload to the specified output stream.-
Methods inherited from class org.glassfish.admin.payload.PayloadImpl.Outbound
addPart, addPart, addPart, attachFile, attachFile, attachFile, attachFile, getContentType, getHeaderName, getParts, isDirty, newInstance, parts, requestFileRemoval, requestFileRemoval, requestFileReplacement, resetDirty, size
-
-
-
-
Method Detail
-
getComplexContentType
public String getComplexContentType()
Description copied from class:PayloadImpl.OutboundReturns the Content-Type which reflects that multiple Parts will be in the Payload.This content type might vary among different implementations of Payload.
- Specified by:
getComplexContentTypein classPayloadImpl.Outbound- Returns:
- the content type for complex payloads
-
writePartsTo
protected void writePartsTo(OutputStream os) throws IOException
Description copied from class:PayloadImpl.OutboundWrites the Parts in this Outbound Payload to the specified output stream; concrete implementations will implement this abstract method.- Specified by:
writePartsToin classPayloadImpl.Outbound- Parameters:
os- the OutputStream to which the Parts should be written- Throws:
IOException
-
writeTo
public void writeTo(OutputStream os) throws IOException
Description copied from class:PayloadImpl.OutboundWrites the Payload to the specified output stream.- Specified by:
writeToin interfacePayload.Outbound- Overrides:
writeToin classPayloadImpl.Outbound- Parameters:
os- the OutputStream to which the Payload should be written- Throws:
IOException
-
-