001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.runtime.tag; 020 021import lucee.runtime.exp.PageException; 022import lucee.runtime.exp.TagNotSupported; 023import lucee.runtime.ext.tag.TagImpl; 024 025public class AjaxProxy extends TagImpl { 026 private String bind; 027 private String cfc; 028 private String jsClassName; 029 private String onError; 030 private String onSuccess; 031 032 033 034 @Override 035 public void release() { 036 super.release(); 037 bind=null; 038 cfc=null; 039 jsClassName=null; 040 onError=null; 041 onSuccess=null; 042 } 043 044 045 /** 046 * @param bind the bind to set 047 */ 048 public void setBind(String bind) { 049 this.bind = bind; 050 } 051 052 053 /** 054 * @param cfc the cfc to set 055 */ 056 public void setCfc(String cfc) { 057 this.cfc = cfc; 058 } 059 060 061 /** 062 * @param jsClassName the jsClassName to set 063 */ 064 public void setJsclassname(String jsClassName) { 065 this.jsClassName = jsClassName; 066 } 067 068 069 /** 070 * @param onError the onError to set 071 */ 072 public void setOnerror(String onError) { 073 this.onError = onError; 074 } 075 076 077 /** 078 * @param onSuccess the onSuccess to set 079 */ 080 public void setOnsuccess(String onSuccess) { 081 this.onSuccess = onSuccess; 082 } 083 084 085 @Override 086 public int doStartTag() throws PageException { 087 throw new TagNotSupported("AjaxProxy"); 088 //return SKIP_BODY; 089 } 090 091 @Override 092 public int doEndTag() { 093 return EVAL_PAGE; 094 } 095}