001: /*
002: * Copyright (c) 1998-2004 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Sam
027: */
028:
029: package javax.portlet;
030:
031: import java.util.Enumeration;
032: import java.util.Locale;
033: import java.util.Map;
034:
035: public interface PortletRequest {
036: public static final String USER_INFO = "javax.portlet.userinfo";
037: public static final String BASIC_AUTH = "BASIC";
038: public static final String FORM_AUTH = "FORM";
039: public static final String CLIENT_CERT_AUTH = "CLIENT_CERT";
040: public static final String DIGEST_AUTH = "DIGEST";
041:
042: public boolean isWindowStateAllowed(WindowState state);
043:
044: public boolean isPortletModeAllowed(PortletMode mode);
045:
046: public PortletMode getPortletMode();
047:
048: public WindowState getWindowState();
049:
050: public PortletPreferences getPreferences();
051:
052: public PortletSession getPortletSession();
053:
054: public PortletSession getPortletSession(boolean create);
055:
056: public String getProperty(String name);
057:
058: public Enumeration getProperties(String name);
059:
060: public Enumeration getPropertyNames();
061:
062: public PortalContext getPortalContext();
063:
064: public String getAuthType();
065:
066: public String getContextPath();
067:
068: public String getRemoteUser();
069:
070: public java.security.Principal getUserPrincipal();
071:
072: public boolean isUserInRole(String role);
073:
074: public Object getAttribute(String name);
075:
076: public Enumeration getAttributeNames();
077:
078: public String getParameter(String name);
079:
080: public Enumeration getParameterNames();
081:
082: public String[] getParameterValues(String name);
083:
084: public Map getParameterMap();
085:
086: public boolean isSecure();
087:
088: public void setAttribute(String name, Object o);
089:
090: public void removeAttribute(String name);
091:
092: public String getRequestedSessionId();
093:
094: public boolean isRequestedSessionIdValid();
095:
096: public String getResponseContentType();
097:
098: public Enumeration getResponseContentTypes();
099:
100: public Locale getLocale();
101:
102: public Enumeration getLocales();
103:
104: public String getScheme();
105:
106: public String getServerName();
107:
108: public int getServerPort();
109:
110: }
|