Package com.google.code.lightssh.common.web.action

Examples of com.google.code.lightssh.common.web.action.ImageAction


  private static final long serialVersionUID = -4953828716980720439L;

  public void execute(ActionInvocation invocation) throws Exception {
    
    if( invocation.getAction() instanceof ImageAction){
      ImageAction action = (ImageAction)invocation.getAction() ;
      HttpServletResponse response = ServletActionContext.getResponse();
      response.setContentType(action.getImageContentType());
      response.getOutputStream().write(action.getImageInBytes());
      response.getOutputStream().flush();
    }
  }
View Full Code Here

TOP

Related Classes of com.google.code.lightssh.common.web.action.ImageAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.