1 19 20 package com.sslexplorer.boot; 21 22 import java.io.InputStream ; 23 import java.io.UnsupportedEncodingException ; 24 import java.util.Enumeration ; 25 import java.util.Map ; 26 27 import javax.servlet.http.Cookie ; 28 29 37 public interface RequestHandlerRequest { 38 39 40 static final int REQUEST_SCOPE = 1; 41 static final int SESSION_SCOPE = 2; 42 47 48 public String getURIEncoded(); 49 50 55 public boolean isSecure(); 56 57 67 public String getField(String name); 68 69 77 public Enumeration getFieldValues(String name); 78 79 84 public String getMethod(); 85 86 91 public Enumeration getFieldNames(); 92 93 98 public String getPath(); 99 100 105 public Map getParameters(); 106 107 114 public String getHost(); 115 116 121 public InputStream getInputStream(); 122 123 132 public int getPort(); 133 134 141 public void setTunnel(RequestHandlerTunnel tunnel); 142 143 144 149 public void setTunnel(RequestHandlerTunnel tunnel, int timeoutMs); 150 151 152 157 public String getRemoteAddr(); 158 159 165 public String getRemoteHost(); 166 167 172 public Cookie [] getCookies(); 173 174 175 181 public void setAttribute(String name, Object value); 182 183 189 public Object getAttribute(String name); 190 191 197 public void setCharacterEncoding(String charset) throws UnsupportedEncodingException ; 198 199 205 public String getContentType(); 206 207 213 public int getContentLength(); 214 215 } 216 | Popular Tags |