org.apache.jetspeed
Class Jetspeed

java.lang.Object
  extended byorg.apache.jetspeed.Jetspeed

public class Jetspeed
extends Object

Jetspeed environment
Provides an easy way to access the current running environment of jetspeed.

Version:
$Id: Jetspeed.java 230516 2005-08-06 01:04:45Z taylor $
Author:
David Sean Taylor

Field Summary
private static Engine engine
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
Jetspeed()
           
 
Method Summary
static org.apache.jetspeed.components.ComponentManager getComponentManager()
           
static PortalContext getContext()
           
static org.apache.jetspeed.request.RequestContext getCurrentRequestContext()
          Delegtes to the current Engine to retreive the RequestContext appropriate for the current thread.
static Locale getDefaultLocale()
           
static Engine getEngine()
           
static String getRealPath(String path)
          Given a application relative path, returns the real path relative to the application root
static void setEngine(Engine engine)
           
static void shutdown()
          Shuts down the currently running instance of the portal Engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

private static Engine engine

log

private static final org.apache.commons.logging.Log log
Constructor Detail

Jetspeed

public Jetspeed()
Method Detail

shutdown

public static void shutdown()
                     throws org.apache.jetspeed.exception.JetspeedException
Shuts down the currently running instance of the portal Engine.

Throws:
org.apache.jetspeed.exception.JetspeedException

getEngine

public static Engine getEngine()

getContext

public static PortalContext getContext()

getRealPath

public static String getRealPath(String path)
Given a application relative path, returns the real path relative to the application root


getCurrentRequestContext

public static org.apache.jetspeed.request.RequestContext getCurrentRequestContext()
Delegtes to the current Engine to retreive the RequestContext appropriate for the current thread.

Returns:
The RequestContext for this current Thread.
See Also:
Engine.getCurrentRequestContext()

getDefaultLocale

public static Locale getDefaultLocale()

getComponentManager

public static org.apache.jetspeed.components.ComponentManager getComponentManager()

setEngine

public static void setEngine(Engine engine)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.