Source for javax.portlet.PortletRequest

   1: /*
   2:  * Copyright (c) 1998-2004 Caucho Technology -- all rights reserved
   3:  *
   4:  * This file is part of Resin(R) Open Source
   5:  *
   6:  * Each copy or derived work must preserve the copyright notice and this
   7:  * notice unmodified.
   8:  *
   9:  * Resin Open Source is free software; you can redistribute it and/or modify
  10:  * it under the terms of the GNU General Public License as published by
  11:  * the Free Software Foundation; either version 2 of the License, or
  12:  * (at your option) any later version.
  13:  *
  14:  * Resin Open Source is distributed in the hope that it will be useful,
  15:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
  17:  * of NON-INFRINGEMENT.  See the GNU General Public License for more
  18:  * details.
  19:  *
  20:  * You should have received a copy of the GNU General Public License
  21:  * along with Resin Open Source; if not, write to the
  22:  *   Free SoftwareFoundation, Inc.
  23:  *   59 Temple Place, Suite 330
  24:  *   Boston, MA 02111-1307  USA
  25:  *
  26:  * @author Sam
  27:  */
  28: 
  29: 
  30: package javax.portlet;
  31: 
  32: import java.util.Enumeration;
  33: import java.util.Locale;
  34: import java.util.Map;
  35: 
  36: public interface PortletRequest
  37:	  {
  38:  public static final String USER_INFO = "javax.portlet.userinfo";
  39:  public static final String BASIC_AUTH = "BASIC";
  40:  public static final String FORM_AUTH = "FORM";
  41:  public static final String CLIENT_CERT_AUTH = "CLIENT_CERT";
  42:  public static final String DIGEST_AUTH = "DIGEST";
  43:
  44:  public boolean isWindowStateAllowed(WindowState state);
  45:
  46:  public boolean isPortletModeAllowed(PortletMode mode);
  47:
  48:  public PortletMode getPortletMode();
  49:
  50:  public WindowState getWindowState();
  51:
  52:  public PortletPreferences getPreferences();
  53:
  54:  public PortletSession getPortletSession();
  55:
  56:  public PortletSession getPortletSession(boolean create);
  57:
  58:  public String getProperty(String name);
  59:
  60:  public Enumeration getProperties(String name);
  61:
  62:  public Enumeration getPropertyNames();
  63:
  64:  public PortalContext getPortalContext();
  65:
  66:  public String getAuthType();
  67:
  68:  public String getContextPath();
  69:
  70:  public String getRemoteUser();
  71:
  72:  public Principal getUserPrincipal();
  73:
  74:  public boolean isUserInRole(String role);
  75:
  76:  public Object getAttribute(String name);
  77:
  78:  public Enumeration getAttributeNames();
  79:
  80:  public String getParameter(String name);
  81:
  82:  public Enumeration getParameterNames();
  83:
  84:  public String[] getParameterValues(String name);
  85:
  86:  public Map getParameterMap();
  87:
  88:  public boolean isSecure();
  89:
  90:  public void setAttribute(String name, Object o);
  91:
  92:  public void removeAttribute(String name);
  93:
  94:  public String getRequestedSessionId();
  95:
  96:  public boolean isRequestedSessionIdValid();
  97:
  98:  public String getResponseContentType();
  99:
 100:  public Enumeration getResponseContentTypes();
 101:
 102:  public Locale getLocale();
 103:
 104:  public Enumeration getLocales();
 105:
 106:  public String getScheme();
 107:
 108:  public String getServerName();
 109:
 110:  public int getServerPort();
 111:
 112:}