wt.clients.util.http
Class UploadApplet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by wt.clients.util.http.UploadApplet
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class UploadApplet
extends Applet

Applet for uploading and downloading files via HTTP. May be used for either single or multiple upload destinations. If multiple, concatenated target files will be uploaded to their corresponding concatenated uploadURLs, but all secondary content attachments will be uploaded to the first of the uploadURLs.
This applet accepts several initialization parameters.

 <param      name="target"          value="e:\abcd\efgh\file.txt"> (for multiple destinations, may concatenate with contentDelim value)
<param name="debug" value="TRUE" or "FALSE"> default is "FALSE"
<param name="bgcolor" value="########"> decimal integer value of the desired background color, default is 14934992
This is a decimal integer giving the red, green, and blue components
where the red component is in bits 16-23 of the argument,
the green component is in bits 8-15 of the argument,
and the blue component is in bits 0-7.
The value zero indicates no contribution from the primary color component.
Example: for the hex RGB color #E3E3CF, the bgcolor value would be "14934992". For #0000FF, bgcolor="255".
<param name="wt.context.locale" value="XX"> locale tag for current browser language
<param name="workspacePath" value="drive\directory\filename"> user preference workspacePath value, if set
<param name="validEmptyFile" value="TRUE" or "FALSE"> default is "FALSE"
<param name="callingAction" value="create" or "updateReplace">
<param name="uploadURL" value=URL to upload files to (for multiple destinations, may concatenate with contentDelim value)
<param name="attachments" value=concatenated attachments transactions in the form of FILE + "newfile"|oid + DELIM + filepath + DELIM + "ADD"|"REMOVE", with RECORD_DELIM between the transactions
<param name="contentDelim" DELIM used in attachments and uploadURL strings, defaults to ";;;qqq">
<param name="contentRecordDelim" RECORD_DELIM used in attachments string, defaults to ";;;zzz">
<param name="completionUrl" value=URL to go to after successful completion of upload>
<param name="failureUrl" value=URL to go to if primary target is invalid or upload fails>
<param name="jsFeedbackMethod" value=method name of JavaScript method that displays invalid filepaths - must accept two arguments, the paths and the URL to go to next, i.e. function displayFeedback( invalidPaths, nextUrl ), defaults to "displayInvalidPaths">
<param name="multipleQuantity" value=if uploading multiple target files to multiple uploadURLs, how many are there? (multiple primaries assumes primary files only, not primary URLs)
<param name="targetType" value="FILE" or "URL" or "NONE" for non-multiple situation, defaults to "FILE"
<param name="uploadImpl" value="rmi" or "http", defaults to "rmi"


The following parameters are only relevant when callingAction=updateReplace: <param name="continueIfFileNotFound" value="true" or "false"> user preference - whether to automatically continue the operation if filepath is invalid
<param name="continueIfFileUnchanged" value="true" or "false"> user preference - whether to automatically continue the operation if local file is identical to Windchill file
<param name="uploadIfFileChanged" value="true" or "false"> user preference - whether to automatically upload if the local file is different than the Windchill file
<param name="checksum" value=persisted checksum of current persisted primary content>
<param name="persistedFilename" value=persisted filename (no path) of current persisted primary content
<param name="oidString" value=OID of current persisted primary content ApplicationData object>
Note: oidString must be in the format of "wt.content.ApplicationData:1437923". Attempting to use an OID with a leading "OR:", such as "OR:wt.content.ApplicationData:1437923", will likely result in server-side failure to persist the uploaded object.


Supported API:true

Extendable:false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Method Summary
 
Methods inherited from class java.applet.Applet
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait