org.apache.empire.struts2.web
Interface AppContext

All Known Implementing Classes:
PortletContextWrapper, ServletContextWrapper

public interface AppContext


Method Summary
 Object getAttribute(String name)
           
 Enumeration<String> getAttributeNames()
           
 String getContextName()
           
 Object getExternalContext()
           
 String getInitParameter(String name)
           
 Enumeration<String> getInitParameterNames()
           
 String getMimeType(String file)
           
 String getRealPath(String path)
           
 URL getResource(String path)
           
 Set<String> getResourcePaths(String path)
           
 boolean isPortlet()
           
 void log(String msg)
           
 void log(String message, Throwable throwable)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object object)
           
 

Method Detail

getContextName

String getContextName()

getExternalContext

Object getExternalContext()

isPortlet

boolean isPortlet()

getMimeType

String getMimeType(String file)

getRealPath

String getRealPath(String path)

getResourcePaths

Set<String> getResourcePaths(String path)

getResource

URL getResource(String path)
                throws MalformedURLException
Throws:
MalformedURLException

log

void log(String msg)

log

void log(String message,
         Throwable throwable)

getInitParameterNames

Enumeration<String> getInitParameterNames()

getInitParameter

String getInitParameter(String name)

getAttributeNames

Enumeration<String> getAttributeNames()

getAttribute

Object getAttribute(String name)

removeAttribute

void removeAttribute(String name)

setAttribute

void setAttribute(String name,
                  Object object)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.