public class ResourceContentBean extends AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder| Modifier and Type | Field and Description | 
|---|---|
protected String | 
contentType  | 
protected byte[] | 
data  | 
| Constructor and Description | 
|---|
ResourceContentBean()  | 
| Modifier and Type | Method and Description | 
|---|---|
byte[] | 
getData()  | 
org.primefaces.model.StreamedContent | 
getResourceDataStream()  | 
String | 
getResourceDataString()  | 
boolean | 
hasData()  | 
boolean | 
isPlainTextDataString()  | 
void | 
setData(byte[] data)  | 
void | 
setData(byte[] data,
       String contentType)  | 
void | 
setResourceDataString(String resourceData)  | 
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, ucaddErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsgprotected byte[] data
protected String contentType
public byte[] getData()
public void setData(byte[] data)
data - the data to setpublic void setData(byte[] data,
                    String contentType)
public org.primefaces.model.StreamedContent getResourceDataStream()
public boolean isPlainTextDataString()
true iff the content of the currently selected resource represents plain text, ie. valid UTF-8
 bytes.public String getResourceDataString()
public void setResourceDataString(String resourceData)
public boolean hasData()
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.