1 17 package javax.servlet; 18 19 import java.io.BufferedReader ; 20 import java.io.IOException ; 21 import java.util.Enumeration ; 22 import java.util.Locale ; 23 import java.util.Map ; 24 25 26 27 44 45 public interface ServletRequest { 46 47 48 49 50 76 77 public Object getAttribute(String name); 78 79 80 81 93 94 public Enumeration getAttributeNames(); 95 96 97 98 99 110 111 public String getCharacterEncoding(); 112 113 123 124 public void setCharacterEncoding(String env) throws java.io.UnsupportedEncodingException ; 125 126 127 128 129 130 140 141 public int getContentLength(); 142 143 144 145 146 156 157 public String getContentType(); 158 159 160 161 162 176 177 public ServletInputStream getInputStream() throws IOException ; 178 179 180 181 182 210 211 public String getParameter(String name); 212 213 214 215 216 231 232 public Enumeration getParameterNames(); 233 234 235 236 237 254 255 public String [] getParameterValues(String name); 256 257 268 269 public Map getParameterMap(); 270 271 272 273 284 285 public String getProtocol(); 286 287 288 289 290 301 302 public String getScheme(); 303 304 305 306 307 315 316 public String getServerName(); 317 318 319 320 321 330 331 public int getServerPort(); 332 333 334 335 358 359 public BufferedReader getReader() throws IOException ; 360 361 362 363 364 374 375 public String getRemoteAddr(); 376 377 378 379 380 392 393 public String getRemoteHost(); 394 395 396 397 398 422 423 public void setAttribute(String name, Object o); 424 425 426 427 428 444 445 public void removeAttribute(String name); 446 447 448 449 450 461 462 public Locale getLocale(); 463 464 465 466 467 482 483 public Enumeration getLocales(); 484 485 486 487 488 498 499 public boolean isSecure(); 500 501 502 503 504 536 537 public RequestDispatcher getRequestDispatcher(String path); 538 539 540 541 542 548 549 public String getRealPath(String path); 550 551 552 560 public int getRemotePort(); 561 562 563 572 public String getLocalName(); 573 574 584 public String getLocalAddr(); 585 586 587 595 public int getLocalPort(); 596 597 } 598 599 | Popular Tags |