com.cinecolombia.interfases.exportarComplejo.applet
Class FtpApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--com.cinecolombia.interfases.exportarComplejo.applet.FtpApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable

public class FtpApplet
extends javax.swing.JApplet

Applet que busca los archivos exportados desde Icon en el sistema de archivos local, los empaca en un zip y los transmite al servidor.

Author:
CincoSoft
See Also:
Serialized Form
Created:
julio 2003

Field Summary
private  java.lang.String directorioExhibicion
          Directorio en el que Icon genera los archivos de exhibición
private  java.util.List errores
          Lista de errores
private  java.util.List filesExhib
          Lista de archivos de exhibición
private  java.lang.String ipAdress
          Dirección IP del servidor
private  javax.swing.JButton msg
          Widget swing de la interfaz de usuario.
private  java.lang.String okMsg
          Mensaje de respuesta satisfactoria para el usuario.
private  java.lang.String password
          Password del usuario en el servidor
private  javax.swing.JPanel pnl
          Widget swing de la interfaz de usuario.
private  java.lang.String remotePath
          Path relativo al directorio del login del usuario ftp en el servidor
private  java.lang.String user
          Usuario para hacer ftp al servidor
private  java.lang.String zipFileName
          Nombre con el que se generará el zip que contiene los archivos.
 
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.applet.Applet
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
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
 
Constructor Summary
FtpApplet()
           
 
Method Summary
 void guiInit()
          Inicia la interfaz gráfica del usuario.
 void init()
          Método init del applet.
 void makeZip()
          Construye un zip file con los archivos que deben ser transmitidos al servidor.
 void sendZip()
          Envía por ftp hacia el servidor el zip file construído por makeZip().
 void showErrores()
          Muestra errores en caso de que falten archivos
 
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, 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, 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, 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, isOpaque, 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, setName, 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
 

Field Detail

ipAdress

private java.lang.String ipAdress
Dirección IP del servidor


user

private java.lang.String user
Usuario para hacer ftp al servidor


password

private java.lang.String password
Password del usuario en el servidor


remotePath

private java.lang.String remotePath
Path relativo al directorio del login del usuario ftp en el servidor


directorioExhibicion

private java.lang.String directorioExhibicion
Directorio en el que Icon genera los archivos de exhibición


zipFileName

private java.lang.String zipFileName
Nombre con el que se generará el zip que contiene los archivos.


filesExhib

private java.util.List filesExhib
Lista de archivos de exhibición


errores

private java.util.List errores
Lista de errores


msg

private javax.swing.JButton msg
Widget swing de la interfaz de usuario.


pnl

private javax.swing.JPanel pnl
Widget swing de la interfaz de usuario.


okMsg

private final java.lang.String okMsg
Mensaje de respuesta satisfactoria para el usuario.

See Also:
Constant Field Values
Constructor Detail

FtpApplet

public FtpApplet()
Method Detail

init

public void init()
Método init del applet.

Overrides:
init in class java.applet.Applet

showErrores

public void showErrores()
Muestra errores en caso de que falten archivos


sendZip

public void sendZip()
Envía por ftp hacia el servidor el zip file construído por makeZip().


makeZip

public void makeZip()
Construye un zip file con los archivos que deben ser transmitidos al servidor.


guiInit

public void guiInit()
Inicia la interfaz gráfica del usuario.