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.BodyTagImpl; 024 025// MUST change behavor of mltiple headers now is a array, it das so? 026 027/** 028* Lets you execute HTTP POST and GET operations on files. Using cfhttp, you can execute standard 029* GET operations and create a query object from a text file. POST operations lets you upload MIME file 030* types to a server, or post cookie, formfield, URL, file, or CGI variables directly to a specified server. 031* 032* 033* 034* 035**/ 036public final class Div extends BodyTagImpl { 037 038 private String bind; 039 private boolean bindOnLoad; 040 private String id; 041 private String onBindError; 042 private String tagName; 043 044 @Override 045 public void release() { 046 super.release(); 047 this.bind=null; 048 this.bindOnLoad=false; 049 this.id=null; 050 this.onBindError=null; 051 this.tagName=null; 052 } 053 054 055 056 057 /** 058 * @param bind the bind to set 059 */ 060 public void setBind(String bind) { 061 this.bind = bind; 062 } 063 064 065 066 067 /** 068 * @param bindOnLoad the bindOnLoad to set 069 */ 070 public void setBindonload(boolean bindOnLoad) { 071 this.bindOnLoad = bindOnLoad; 072 } 073 074 075 076 077 /** 078 * @param id the id to set 079 */ 080 public void setId(String id) { 081 this.id = id; 082 } 083 084 085 086 087 /** 088 * @param onBindError the onBindError to set 089 */ 090 public void setOnbinderror(String onBindError) { 091 this.onBindError = onBindError; 092 } 093 094 095 096 097 /** 098 * @param tagName the tagName to set 099 */ 100 public void setTagname(String tagName) { 101 this.tagName = tagName; 102 } 103 104 105 106 107 @Override 108 public int doStartTag() throws TagNotSupported { 109 throw new TagNotSupported("Div"); 110 //return EVAL_BODY_INCLUDE; 111 } 112 113 @Override 114 public int doEndTag() throws PageException { 115 return EVAL_PAGE; 116 } 117 118 @Override 119 public void doInitBody() { 120 } 121 122 @Override 123 public int doAfterBody() { 124 return SKIP_BODY; 125 } 126 127 /** 128 * sets if has body or not 129 * @param hasBody 130 */ 131 public void hasBody(boolean hasBody) { 132 } 133}