org.glassfish.api.admin
Interface Payload.Part

Enclosing interface:
Payload

public static interface Payload.Part

Public API for the payload Part.


Method Summary
 void copy(java.io.OutputStream os)
          Copies the contents of the Part to the specified OutputStream.
 java.lang.String getContentType()
          Returns the content type of the part.
 java.io.InputStream getInputStream()
          Returns an InputStream suitable for reading the content of the Part.
 java.lang.String getName()
          Returns the name assigned to the part when it was created.
 java.util.Properties getProperties()
          Returns the Properties associated with the Part.
 boolean isRecursive()
          Indicates if the Part represents a recursive action or not.
 

Method Detail

getName

java.lang.String getName()
Returns the name assigned to the part when it was created.

Returns:
name

getContentType

java.lang.String getContentType()
Returns the content type of the part.

Returns:
content type

getProperties

java.util.Properties getProperties()
Returns the Properties associated with the Part.

Returns:
Properties for the Part

getInputStream

java.io.InputStream getInputStream()
Returns an InputStream suitable for reading the content of the Part.

Returns:

copy

void copy(java.io.OutputStream os)
          throws java.io.IOException
Copies the contents of the Part to the specified OutputStream.

Parameters:
os - target OutputStream to receive the content of the Part
Throws:
java.io.IOException

isRecursive

boolean isRecursive()
Indicates if the Part represents a recursive action or not.

Returns:


Copyright © 2012 GlassFish Community. All Rights Reserved.