Examples of WebForwardForm


Examples of com.adito.webforwards.forms.WebForwardForm

     * @param response
     * @return ActionForward
     * @throws Exception
     */
    public ActionForward toggleActiveDns(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
        WebForwardForm webForwardForm = (WebForwardForm) form;
        if(webForwardForm.isActiveDNS()) {
            webForwardForm.setHostHeader("");
        }
        return mapping.findForward("display");
    }
View Full Code Here

Examples of com.adito.webforwards.forms.WebForwardForm

    /* (non-Javadoc)
     * @see com.adito.policyframework.actions.AbstractResourceDispatchAction#commit(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    public ActionForward commit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                    throws Exception {
        WebForwardForm webForwardForm = (WebForwardForm) form;
        if (WebForwardForm.ATTR_NO_AUTHENTICATION.equals(webForwardForm.getAuthenticationType())) {
            webForwardForm.setPreferredAuthenticationScheme(HttpAuthenticatorFactory.NONE);
            webForwardForm.setAuthenticationUsername("");
            webForwardForm.setAuthenticationPassword("");
            webForwardForm.setFormType(WebForwardTypes.FORM_SUBMIT_NONE);
            webForwardForm.setFormParameters("");
        } else if (WebForwardForm.ATTR_FORM_BASED_AUTHENTICATION.equals(webForwardForm.getAuthenticationType())) {
            webForwardForm.setPreferredAuthenticationScheme(HttpAuthenticatorFactory.NONE);
            webForwardForm.setAuthenticationUsername("");
            webForwardForm.setAuthenticationPassword("");
        } else if (WebForwardForm.ATTR_HTTP_BASED_AUTHENTICATION.equals(webForwardForm.getAuthenticationType())) {
            webForwardForm.setFormType(WebForwardTypes.FORM_SUBMIT_NONE);
            webForwardForm.setFormParameters("");
        }
        ActionForward actionForward = super.commit(mapping, form, request, response);
        saveMessage(request, "editWebForward.message.saved");
        return actionForward;
    }
View Full Code Here

Examples of com.adito.webforwards.forms.WebForwardForm

     * (non-Javadoc)
     *
     * @see javax.servlet.jsp.tagext.Tag#doStartTag()
     */
    public int doStartTag() {
        WebForwardForm fsf = (WebForwardForm) pageContext.getSession().getAttribute("webForwardForm");
        int type = -1;
        if (fsf == null){
            WebForwardTypeSelectionForm wfsdf = (WebForwardTypeSelectionForm) pageContext.getSession().getAttribute("webForwardTypeSelectionForm");
            type = wfsdf.getType();
        }
        else {
          type = fsf.getType();
        }
        if (type == WebForward.TYPE_PATH_BASED_REVERSE_PROXY || type == WebForward.TYPE_HOST_BASED_REVERSE_PROXY) {
            return EVAL_BODY_INCLUDE;
        } else {
            return SKIP_BODY;
View Full Code Here

Examples of com.adito.webforwards.forms.WebForwardForm

     * (non-Javadoc)
     *
     * @see javax.servlet.jsp.tagext.Tag#doStartTag()
     */
    public int doStartTag() {
        WebForwardForm fsf = (WebForwardForm) pageContext.getSession().getAttribute("webForwardForm");
        int type = -1;
        if (fsf == null){
            WebForwardTypeSelectionForm wfsdf = (WebForwardTypeSelectionForm) pageContext.getSession().getAttribute("webForwardTypeSelectionForm");
            type = wfsdf.getType();
        }
        else {
          type = fsf.getType();
        }
       
        if (type == WebForward.TYPE_TUNNELED_SITE) {
            return EVAL_BODY_INCLUDE;
        } else {
View Full Code Here

Examples of com.adito.webforwards.forms.WebForwardForm

     * (non-Javadoc)
     *
     * @see javax.servlet.jsp.tagext.Tag#doStartTag()
     */
    public int doStartTag() {
        WebForwardForm fsf = (WebForwardForm) pageContext.getSession().getAttribute("webForwardForm");
        int type = -1;
        if (fsf == null){
            WebForwardTypeSelectionForm wfsdf = (WebForwardTypeSelectionForm) pageContext.getSession().getAttribute("webForwardTypeSelectionForm");
            type = wfsdf.getType();
        }
        else {
          type = fsf.getType();
        }
        if (type == WebForward.TYPE_REPLACEMENT_PROXY) {
            return EVAL_BODY_INCLUDE;
        } else {
            return SKIP_BODY;
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.