wicket.protocol.http.portlet
Class PortletApplicationPath
java.lang.Object
wicket.protocol.http.portlet.PortletApplicationPath
- All Implemented Interfaces:
- IResourceFinder, IResourcePath
public class PortletApplicationPath
- extends java.lang.Object
- implements IResourcePath
Loads resources from the portlet context
- Author:
- Johan Compagner, Janne Hietamäki
|
Method Summary |
void |
add(java.lang.String folder)
|
java.net.URL |
find(java.lang.String pathname)
Looks for a given pathname along this path |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PortletApplicationPath
public PortletApplicationPath(javax.portlet.PortletContext portletContext)
- Constructor
- Parameters:
portletContext - The webapplication context where the resources must be loaded
from
add
public void add(java.lang.String folder)
- Specified by:
add in interface IResourcePath
- Parameters:
folder - add a path that is lookup through the portlet context
find
public java.net.URL find(java.lang.String pathname)
- Looks for a given pathname along this path
- Specified by:
find in interface IResourceFinder
- Parameters:
pathname - The filename with possible path
- Returns:
- The file located on the path
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2004-2007 Wicket developers. All Rights Reserved.