net.sf.jportlet.impl
Class PortletURIImpl

java.lang.Object
  |
  +--net.sf.jportlet.impl.PortletURIImpl
All Implemented Interfaces:
PortletURI

public class PortletURIImpl
extends java.lang.Object
implements PortletURI

Implementation of PortletURI

Author:
Herve Tchepannou

Field Summary
static java.lang.String ACTION
           
static java.lang.String MODE
           
static java.lang.String PORTLET
           
static java.lang.String STATE
           
 
Constructor Summary
PortletURIImpl(net.sf.jportlet.impl.PortletRequestImpl request, net.sf.jportlet.impl.PortletResponseImpl response)
           
PortletURIImpl(java.lang.String portletName, java.lang.String contextPath)
           
 
Method Summary
 void addParameter(java.lang.String name, java.lang.String value)
          Adds the given parameter to this URI.
 java.lang.String getAction()
          Return the name action
 Portlet.Mode getMode()
          Return the current mode
 java.lang.String getPortletName()
           
 PortletWindow.State getState()
          Returnt the state of the portlet
static net.sf.jportlet.impl.PortletURIImpl parse(java.lang.String requestURI)
           
 void setAction(java.lang.String action)
          Set the name of the action
 void setMode(Portlet.Mode mode)
          Set the mode of the portlet
 void setPortletName(java.lang.String portletName)
          Sets the portletName.
 void setState(PortletWindow.State state)
          Set the state of the window
 java.lang.String toString()
          Format of the URI: //portlet//action/[]/mode/[][&]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION

public static final java.lang.String ACTION
See Also:
Constant Field Values

MODE

public static final java.lang.String MODE
See Also:
Constant Field Values

PORTLET

public static final java.lang.String PORTLET
See Also:
Constant Field Values

STATE

public static final java.lang.String STATE
See Also:
Constant Field Values
Constructor Detail

PortletURIImpl

public PortletURIImpl(net.sf.jportlet.impl.PortletRequestImpl request,
                      net.sf.jportlet.impl.PortletResponseImpl response)

PortletURIImpl

public PortletURIImpl(java.lang.String portletName,
                      java.lang.String contextPath)
Method Detail

parse

public static net.sf.jportlet.impl.PortletURIImpl parse(java.lang.String requestURI)
                                                 throws MalformedURIException
MalformedURIException

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String value)
Description copied from interface: PortletURI
Adds the given parameter to this URI. A portlet container may wish to prefix the attribute names internally, to preserve a unique namespace for the portlet

Specified by:
addParameter in interface PortletURI
Parameters:
name -
value -
See Also:
PortletURI.addParameter(java.lang.String, java.lang.String)

getAction

public java.lang.String getAction()
Description copied from interface: PortletURI
Return the name action

Specified by:
getAction in interface PortletURI
Returns:
String
See Also:
PortletURI.getAction()

getMode

public Portlet.Mode getMode()
Description copied from interface: PortletURI
Return the current mode

Specified by:
getMode in interface PortletURI
Returns:
Mode
See Also:
PortletURI.getMode()

getPortletName

public java.lang.String getPortletName()
See Also:
net.sf.jportlet.portlet.PortletURI#getPortletName()

setAction

public void setAction(java.lang.String action)
Description copied from interface: PortletURI
Set the name of the action

Specified by:
setAction in interface PortletURI
Parameters:
action -
See Also:
PortletURI.setAction(java.lang.String)

setMode

public void setMode(Portlet.Mode mode)
Description copied from interface: PortletURI
Set the mode of the portlet

Specified by:
setMode in interface PortletURI
Parameters:
mode -
See Also:
PortletURI.setMode(net.sf.jportlet.portlet.Portlet.Mode)

setPortletName

public void setPortletName(java.lang.String portletName)
Sets the portletName.

Parameters:
portletName - The portletName to set

toString

public java.lang.String toString()
Format of the URI: //portlet//action/[]/mode/[][&]

Specified by:
toString in interface PortletURI
Overrides:
toString in class java.lang.Object
Returns:
String
See Also:
Object.toString()

getState

public PortletWindow.State getState()
Description copied from interface: PortletURI
Returnt the state of the portlet

Specified by:
getState in interface PortletURI
Returns:
State
See Also:
PortletURI.getState()

setState

public void setState(PortletWindow.State state)
Description copied from interface: PortletURI
Set the state of the window

Specified by:
setState in interface PortletURI
Parameters:
state -
See Also:
PortletURI.setState(net.sf.jportlet.portlet.PortletWindow.State)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.