1 16 package org.apache.cocoon.environment; 17 18 import java.security.Principal ; 19 import java.util.Enumeration ; 20 import java.util.Locale ; 21 import java.util.Map ; 22 23 31 public interface Request { 32 33 46 47 Object get(String name); 48 49 62 63 Object getAttribute(String name); 64 65 77 78 Enumeration getAttributeNames(); 79 80 97 98 void setAttribute(String name, Object o); 99 100 116 117 void removeAttribute(String name); 118 119 120 130 131 String getAuthType(); 132 133 144 145 String getCharacterEncoding(); 146 147 153 154 void setCharacterEncoding(String enc) throws java.io.UnsupportedEncodingException ; 155 156 163 164 int getContentLength(); 165 166 174 175 String getContentType(); 176 177 189 190 String getParameter(String name); 191 192 207 208 Enumeration getParameterNames(); 209 210 227 228 String [] getParameterValues(String name); 229 230 231 242 243 String getProtocol(); 244 245 256 257 String getScheme(); 258 259 267 268 String getServerName(); 269 270 278 279 int getServerPort(); 280 281 290 291 String getRemoteAddr(); 292 293 303 304 String getRemoteHost(); 305 306 317 318 Locale getLocale(); 319 320 335 336 Enumeration getLocales(); 337 338 348 349 boolean isSecure(); 350 351 363 364 Cookie[] getCookies(); 365 366 373 Map getCookieMap(); 374 375 409 410 long getDateHeader(String name); 411 412 430 431 String getHeader(String name); 432 433 458 459 Enumeration getHeaders(String name); 460 461 480 481 Enumeration getHeaderNames(); 482 483 495 496 String getMethod(); 497 498 518 519 String getPathInfo(); 520 521 538 539 String getPathTranslated(); 540 541 556 557 String getContextPath(); 558 559 571 572 String getQueryString(); 573 574 588 589 String getRemoteUser(); 590 591 605 606 Principal getUserPrincipal(); 607 608 620 621 boolean isUserInRole(String role); 622 623 641 642 String getRequestedSessionId(); 643 644 667 668 String getRequestURI(); 669 670 687 String getSitemapURI(); 688 689 699 String getSitemapURIPrefix(); 700 701 716 717 String getServletPath(); 718 719 752 753 Session getSession(boolean create); 754 755 766 767 Session getSession(); 768 769 782 783 boolean isRequestedSessionIdValid(); 784 785 797 798 boolean isRequestedSessionIdFromCookie(); 799 800 813 814 boolean isRequestedSessionIdFromURL(); 815 } 816 | Popular Tags |