net.fckeditor.requestcycle
Class Context

java.lang.Object
  extended by net.fckeditor.requestcycle.Context

public class Context
extends Object

Maintains base/common request parameters from the File Browser. The gain of this class is to provide abstracted and pre-processed access to common request parameters.

In the regular case, you will use an already created instance of this class.

Version:
$Id: Context.java 3695 2009-06-18 20:18:38Z mosipov $

Constructor Summary
protected Context(HttpServletRequest request)
          Sole class constructor.
 
Method Summary
 Command getCommand()
          Returns a command instance for the command parameter.
 String getCommandStr()
          Returns the command parameter of this context.
 String getCurrentFolderStr()
          Returns the current folder parameter of this context.
 ResourceType getDefaultResourceType()
          Returns a default resource type instance for the type parameter.
 ResourceType getResourceType()
          Returns a resource type instance for the type parameter.
 String getTypeStr()
          Returns the type parameter of this context.
 void logBaseParameters()
          Logs base/common request parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

protected Context(HttpServletRequest request)
Sole class constructor. Takes in a request instance, processes parameters and populates private fields which can be accessed through getters.
This class will only be instantiated in ThreadLocalData.

Parameters:
request - current user request instance
Method Detail

getTypeStr

public String getTypeStr()
Returns the type parameter of this context.

Returns:
the type parameter of this context

getDefaultResourceType

public ResourceType getDefaultResourceType()
Returns a default resource type instance for the type parameter.

Returns:
default resource type instance
See Also:
ResourceType.getDefaultResourceType(String)

getResourceType

public ResourceType getResourceType()
Returns a resource type instance for the type parameter.

Returns:
resource type instance
See Also:
ResourceType.getResourceType(String)

getCommandStr

public String getCommandStr()
Returns the command parameter of this context.

Returns:
the command parameter of this context

getCommand

public Command getCommand()
Returns a command instance for the command parameter.

Returns:
command instance
See Also:
Command.getCommand(String)

getCurrentFolderStr

public String getCurrentFolderStr()
Returns the current folder parameter of this context.

Returns:
the current folder parameter of this context

logBaseParameters

public void logBaseParameters()
Logs base/common request parameters.



Copyright © 2004-2009 Frederico Caldeira Knabben. All Rights Reserved.