Package com.iisigroup.cap.operation.step

Source Code of com.iisigroup.cap.operation.step.CapHandleOpStep

/*
* CapFormHandleOpStep.java
*
* Copyright (c) 2009-2011 International Integrated System, Inc.
* 11F, No.133, Sec.4, Minsheng E. Rd., Taipei, 10574, Taiwan, R.O.C.
* All Rights Reserved.
*
* Licensed Materials - Property of International Integrated System,Inc.
*
* This software is confidential and proprietary information of
* International Integrated System, Inc. ("Confidential Information").
*/
package com.iisigroup.cap.operation.step;

import com.iisigroup.cap.action.IAction;
import com.iisigroup.cap.component.IRequest;
import com.iisigroup.cap.handler.IHandler;
import com.iisigroup.cap.operation.OpStepContext;
import com.iisigroup.cap.response.IResult;

/**
* <pre>
* CapFormHandleOpStep
* </pre>
*
* @since 2010/7/23
* @author iristu
* @version <ul>
*          <li>2010/7/23,iristu,new
*          <li>2013/1/28,RodesChen,remove setName
*          </ul>
*/
public class CapHandleOpStep extends AbstractCustomizeOpStep {

  @Override
  public OpStepContext execute(OpStepContext ctx, IRequest params,
      IHandler handler) {
    IResult rtn = null;
    @SuppressWarnings("static-access")
    String actionType = params.get(handler.FORM_ACTION);
    //setName(handler.getHandlerName() + "." + actionType);
    IAction action = handler.getAction(actionType);
    rtn = action.doWork(params);
    ctx.setGoToStep(NEXT);
    ctx.setResult(rtn);
    return ctx;
  }// ;

}// ~
TOP

Related Classes of com.iisigroup.cap.operation.step.CapHandleOpStep

TOP
Copyright © 2018 www.massapi.com. 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.