Package com.uphea

Source Code of com.uphea.AppMadvocConfig

package com.uphea;

import com.uphea.action.IndexAction;
import jodd.madvoc.component.MadvocConfig;
import jodd.servlet.CsrfShield;
import jodd.upload.impl.AdaptiveFileUploadFactory;

/**
* Custom application Madvoc configuration. This is also a good place
* for any other web configuration.
* <p>
* Additionally/alternately, 'madvoc.props' is also used for
* Madvoc configuration.
*/
public class AppMadvocConfig extends MadvocConfig {

  public AppMadvocConfig() {
    fileUploadFactory = new AdaptiveFileUploadFactory();
    getRootPackages().addRootPackageOf(IndexAction.class);

    // additional web config
    CsrfShield.setTimeToLive(0);
  }
}
TOP

Related Classes of com.uphea.AppMadvocConfig

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.