org.jboss.portal.core.samples.basic
Class CharsetPortlet
java.lang.Object
javax.portlet.GenericPortlet
org.jboss.portal.core.samples.basic.CharsetPortlet
- All Implemented Interfaces:
- Portlet
public class CharsetPortlet
- extends GenericPortlet
This portlet is used to display a form that helps to test the charset handling by the portal and the client. When a
fault occurs it may be the client fault (for instance the char with unicode value 160 fail the test in firefox but
succeds in IE6).
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
| Methods inherited from class javax.portlet.GenericPortlet |
destroy, doDispatch, doEdit, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, init, render |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharsetPortlet
public CharsetPortlet()
processAction
public void processAction(ActionRequest req,
ActionResponse resp)
throws PortletException,
PortletSecurityException,
java.io.IOException
- Description copied from class:
GenericPortlet
- Called by the portlet container to allow the portlet to process an action request. This method is called if the
client request was originated by a URL created (by the portlet) with the
RenderResponse.createActionURL()
method.
The default implementation throws an exception.
- Specified by:
processAction in interface Portlet- Overrides:
processAction in class GenericPortlet
- Parameters:
req - the action requestresp - the action response
- Throws:
PortletException - if the portlet cannot fulfilling the request
UnavailableException - if the portlet is unavailable to process the action at this time
PortletSecurityException - if the portlet cannot fullfill this request because of security reasons
java.io.IOException - if the streaming causes an I/O problem
doHelp
protected void doHelp(RenderRequest req,
RenderResponse resp)
throws PortletException,
PortletSecurityException,
java.io.IOException
- Description copied from class:
GenericPortlet
- Helper method to serve up the
help mode.
The default implementation throws an exception.
- Overrides:
doHelp in class GenericPortlet
- Parameters:
req - the portlet requestresp - the render response
- Throws:
PortletException - if the portlet cannot fulfilling the request
UnavailableException - if the portlet is unavailable to perform render at this time
PortletSecurityException - if the portlet cannot fullfill this request because of security reasons
java.io.IOException - if the streaming causes an I/O problem
doView
protected void doView(RenderRequest req,
RenderResponse resp)
throws PortletException,
PortletSecurityException,
java.io.IOException
- Description copied from class:
GenericPortlet
- Helper method to serve up the mandatory
view mode.
The default implementation throws an exception.
- Overrides:
doView in class GenericPortlet
- Parameters:
req - the portlet requestresp - the render response
- Throws:
PortletException - if the portlet cannot fulfilling the request
UnavailableException - if the portlet is unavailable to perform render at this time
PortletSecurityException - if the portlet cannot fullfill this request because of security reasons
java.io.IOException - if the streaming causes an I/O problem
useChar
public static boolean useChar(char c)