Examples of TunnelForm


Examples of com.adito.tunnels.forms.TunnelForm

    /* (non-Javadoc)
     * @see com.adito.policyframework.actions.AbstractResourceDispatchAction#commitCreatedResource(org.apache.struts.action.ActionMapping, com.adito.policyframework.forms.AbstractResourceForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    protected Resource commitCreatedResource(ActionMapping mapping, AbstractResourceForm form, HttpServletRequest request,
                                             HttpServletResponse response) throws Exception {
        TunnelForm tf = (TunnelForm) form;
        Tunnel tunnel = (Tunnel) tf.getResource();

        return TunnelDatabaseFactory.getInstance().createTunnel(tunnel.getRealmID(), tunnel.getResourceName(),
            tunnel.getResourceDescription(), tunnel.getType(), tunnel.isAutoStart(), tunnel.getTransport(), tunnel.getUsername(),
            tunnel.getSourcePort(), tunnel.getDestination(), tunnel.getSourceInterface());
    }
View Full Code Here
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.