wjhk.jupload2.policies
Class UploadPolicyFactory

java.lang.Object
  extended by 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:

Version:
$Revision: 822 $
Author:
etienne_sf

Constructor Summary
UploadPolicyFactory()
           
 
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
 

Constructor Detail

UploadPolicyFactory

public UploadPolicyFactory()
Method Detail

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