|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.portals.bridges.common.GenericServletPortlet
org.apache.portals.gems.file.FilePortlet
public class FilePortlet
FilePortlet
Field Summary | |
---|---|
(package private) static int |
BLOCK_SIZE
|
private String |
defaultSourceBasePath
Default base URL for the source file |
private String |
defaultSourceFile
Default URL for the source file |
static String |
PARAM_LOCATION
Is the file stored in the webapp or outside of the webapp? valid values "webapp" and "filesystem", defaults to webapp |
static String |
PARAM_SOURCE_BASE_PATH
Name of portlet preference for source file url |
static String |
PARAM_SOURCE_FILE
Name of portlet preference for source file url |
static String |
PARAM_SOURCE_FILE_PATH
Name of portlet preference for source file url |
static String |
PARAM_USE_LANGUAGE
|
private boolean |
useLanguage
|
private boolean |
webappLocation
|
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
---|
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE |
Constructor Summary | |
---|---|
FilePortlet()
|
Method Summary | |
---|---|
protected static String |
concatenatePaths(String base,
String path)
|
void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
static void |
drain(InputStream r,
OutputStream w)
|
protected List |
fallback(String path,
String language)
|
private String |
getFilePath(String path)
|
private javax.servlet.http.HttpServletRequest |
getHttpServletRequest(javax.portlet.PortletRequest pRequest)
|
private org.apache.jetspeed.request.RequestContext |
getRequestContext(javax.portlet.PortletRequest request)
|
void |
init(javax.portlet.PortletConfig config)
|
protected void |
renderFile(javax.portlet.RenderResponse response,
List paths)
|
protected void |
setContentType(String path,
javax.portlet.RenderResponse response)
|
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
---|
doCustom, doEdit, doHelp, getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, processAction, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PARAM_USE_LANGUAGE
public static final String PARAM_SOURCE_FILE
public static final String PARAM_SOURCE_BASE_PATH
public static final String PARAM_SOURCE_FILE_PATH
public static final String PARAM_LOCATION
private boolean webappLocation
private String defaultSourceFile
private String defaultSourceBasePath
private boolean useLanguage
static final int BLOCK_SIZE
Constructor Detail |
---|
public FilePortlet()
Method Detail |
---|
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
init
in interface javax.portlet.Portlet
init
in class org.apache.portals.bridges.common.GenericServletPortlet
javax.portlet.PortletException
private org.apache.jetspeed.request.RequestContext getRequestContext(javax.portlet.PortletRequest request)
private javax.servlet.http.HttpServletRequest getHttpServletRequest(javax.portlet.PortletRequest pRequest)
public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doView
in class org.apache.portals.bridges.common.GenericServletPortlet
javax.portlet.PortletException
IOException
protected List fallback(String path, String language)
protected void setContentType(String path, javax.portlet.RenderResponse response)
protected void renderFile(javax.portlet.RenderResponse response, List paths) throws javax.portlet.PortletException, IOException
javax.portlet.PortletException
IOException
public static void drain(InputStream r, OutputStream w) throws IOException
IOException
private String getFilePath(String path)
protected static String concatenatePaths(String base, String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |