es.mcu.yingo.controladores
Class ControladorDetalleFichero

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by org.springframework.web.servlet.mvc.AbstractCommandController
                          extended by es.mcu.yingo.controladores.SuperControladorCommand
                              extended by es.mcu.yingo.controladores.ControladorDetalleFichero
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.mvc.Controller

public class ControladorDetalleFichero
extends SuperControladorCommand

Utilidad que permite obtener el detalle de un fichero que se ha subido al servidor previamente.

Author:
miguel.esteban

Field Summary
private static java.lang.String CLAVE_DATOS_VISTA
          Clave para los datos que se enciarán a la vista
private  java.util.Map<java.lang.String,java.lang.String> vista
          Map de vistas que redirigen al resultado del detalle del fichero
 
Fields inherited from class es.mcu.yingo.controladores.SuperControladorCommand
logger
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST
 
Constructor Summary
ControladorDetalleFichero()
          Constructor por defecto
Se pone como Command Class DatosId, que es el id de la clase de negocio de la tabla datos
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getVista()
          Map de vistas que redirigen al resultado del detalle del fichero
protected  org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors)
          Recupera el campo de tipo fichero que está en el servidor de ficheros y muestra el detalle,
tipo, tamaño, resumen criptográfico...
 void setVista(java.util.Map<java.lang.String,java.lang.String> vista)
          Map de vistas que redirigen al resultado del detalle del fichero
 
Methods inherited from class es.mcu.yingo.controladores.SuperControladorCommand
getBaseDatos, getSpringContextUtilWeb, obtenerVistaAplicacion, recogerParametro, setBaseDatos, setSpringContextUtilWeb
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractCommandController
handleRequestInternal
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommand, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, onBindAndValidate, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, suppressBinding, suppressValidation
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, isContextRequired
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLAVE_DATOS_VISTA

private static final java.lang.String CLAVE_DATOS_VISTA
Clave para los datos que se enciarán a la vista

See Also:
Constant Field Values

vista

private java.util.Map<java.lang.String,java.lang.String> vista
Map de vistas que redirigen al resultado del detalle del fichero

Constructor Detail

ControladorDetalleFichero

public ControladorDetalleFichero()
Constructor por defecto
Se pone como Command Class DatosId, que es el id de la clase de negocio de la tabla datos

Method Detail

handle

protected org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response,
                                                              java.lang.Object command,
                                                              org.springframework.validation.BindException errors)
                                                       throws java.lang.Exception
Recupera el campo de tipo fichero que está en el servidor de ficheros y muestra el detalle,
tipo, tamaño, resumen criptográfico...

Specified by:
handle in class org.springframework.web.servlet.mvc.AbstractCommandController
Parameters:
request -
response -
command -
errors -
Throws:
java.lang.Exception

getVista

public java.util.Map<java.lang.String,java.lang.String> getVista()
Map de vistas que redirigen al resultado del detalle del fichero

Returns:
the vista

setVista

public void setVista(java.util.Map<java.lang.String,java.lang.String> vista)
Map de vistas que redirigen al resultado del detalle del fichero

Parameters:
vista - the vista to set