wjhk.jupload2.policies
Class UploadPolicyFactory
java.lang.Object
wjhk.jupload2.policies.UploadPolicyFactory
public class UploadPolicyFactory
- extends Object
This class is used to control creation of the uploadPolicy instance,
according to applet parameters (or System properties).
The used parameters are:
- postURL: The URL where files are to be uploaded. This parameter is
mandatory if called from a servlet.
- uploadPolicy: the class name to be used as a policy. Currently available
: not defined (then use DefaultUploadPolicy),
DefaultUploadPolicy
,
CoppermineUploadPolicy
- Version:
- $Revision: 822 $
- Author:
- etienne_sf
Method Summary |
static UploadPolicy |
getUploadPolicy(wjhk.jupload2.context.JUploadContext theAppletContext)
Returns an upload Policy for the given applet and URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadPolicyFactory
public UploadPolicyFactory()
getUploadPolicy
public static UploadPolicy getUploadPolicy(wjhk.jupload2.context.JUploadContext theAppletContext)
throws Exception
- Returns an upload Policy for the given applet and URL. All other
parameters for the uploadPolicy are take from avaiable applet parameters
(or from system properties, if it is not run as an applet).
- Parameters:
theAppletContext
- if not null : use this Applet Parameters. If
null, use System properties.
- Returns:
- The newly created UploadPolicy.
- Throws:
Exception