|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.invocation.response.PortletInvocationResponse
org.jboss.portal.portlet.invocation.response.ContentResponse
public class ContentResponse
Data produced.
| Field Summary | |
|---|---|
static int |
TYPE_BYTES
. |
static int |
TYPE_CHARS
. |
static int |
TYPE_EMPTY
. |
| Constructor Summary | |
|---|---|
ContentResponse(ResponseProperties properties,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String contentType,
byte[] bytes,
java.lang.String chars,
CacheControl cacheControl)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
|
byte[] |
getBytes()
Return the bytes of the content held by the fragment. |
CacheControl |
getCacheControl()
|
java.lang.String |
getChars()
Return the chars of the content held by the fragment. |
java.lang.String |
getContent()
Return the content as a string. |
java.lang.String |
getContentType()
Return the content type of the generated fragment. |
ResponseProperties |
getProperties()
|
int |
getType()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_EMPTY
public static final int TYPE_CHARS
public static final int TYPE_BYTES
| Constructor Detail |
|---|
public ContentResponse(ResponseProperties properties,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String contentType,
byte[] bytes,
java.lang.String chars,
CacheControl cacheControl)
| Method Detail |
|---|
public ResponseProperties getProperties()
public CacheControl getCacheControl()
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public int getType()
public java.lang.String getContent()
public byte[] getBytes()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the type is not bytes
public java.lang.String getChars()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the type is not charspublic java.lang.String getContentType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||