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 javax.servlet.jsp.tagext.BodyTag; 022 023import lucee.runtime.exp.PageException; 024 025public interface Http extends BodyTag { 026 public static final String MULTIPART_RELATED = "multipart/related"; 027 public static final String MULTIPART_FORM_DATA = "multipart/form-data"; 028 029 /** 030 * Maximum redirect count (5) 031 */ 032 public static final short MAX_REDIRECT=15; 033 034 /** 035 * Constant value for HTTP Status Code "moved Permanently 301" 036 */ 037 public static final int STATUS_REDIRECT_MOVED_PERMANENTLY=301; 038 /** 039 * Constant value for HTTP Status Code "Found 302" 040 */ 041 public static final int STATUS_REDIRECT_FOUND=302; 042 /** 043 * Constant value for HTTP Status Code "see other 303" 044 */ 045 public static final int STATUS_REDIRECT_SEE_OTHER=303; 046 047 048 public static final int STATUS_REDIRECT_TEMPORARY_REDIRECT = 307; 049 050 051 public void setParam(HttpParamBean param); 052 053 public void setFirstrowasheaders(boolean firstrowasheaders); 054 055 public void setEncodeurl(boolean encoded); 056 057 public void setPassword(String password); 058 059 public void setProxypassword(String proxypassword); 060 061 public void setDelimiter(String delimiter); 062 063 public void setResolveurl(boolean resolveurl); 064 065 public void setPreauth(boolean preauth); 066 067 public void setTimeout(Object timeout) throws PageException; 068 069 public void setProxyserver(String proxyserver); 070 071 public void setProxyport(double proxyport); 072 073 public void setFile(String file); 074 075 public void setThrowonerror(boolean throwonerror); 076 077 public void setCharset(String charset); 078 079 public void setColumns(String columns) throws PageException; 080 081 public void setPort(double port); 082 083 public void setUseragent(String useragent); 084 085 public void setTextqualifier(String textqualifier); 086 087 public void setProxyuser(String proxyuser); 088 089 public void setUsername(String username); 090 091 public void setUrl(String url); 092 093 public void setRedirect(boolean redirect); 094 095 public void setPath(String path); 096 097 public void setName(String name); 098 099 public void setAuthtype(String strAuthType) throws PageException; 100 101 public void setWorkstation(String workStation); 102 103 public void setDomain(String domain); 104 105 public void setMethod(String method) throws PageException; 106 107 public void setCompression(String strCompression) throws PageException; 108 109 public void setGetasbinary(String getAsBinary); 110 111 public void setMultipart(boolean multiPart); 112 113 public void setMultiparttype(String multiPartType) throws PageException; 114 115 public void setResult(String result); 116 117 public void setAddtoken(boolean addtoken); 118 119}