org.atmosphere.nettosphere
Class Context

java.lang.Object
  extended by org.atmosphere.nettosphere.Context

public class Context
extends Object


Nested Class Summary
static class Context.Builder
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 String getContextPath()
           
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 int getMajorVersion()
           
 String getMimeType(String file)
           
 int getMinorVersion()
           
 String getRealPath(String path)
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String path)
           
 Set getResourcePaths(String path)
           
 String getServerInfo()
           
 String getServletContextName()
           
 String path()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

path

public String path()

getContextPath

public String getContextPath()

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

getMimeType

public String getMimeType(String file)

getResourcePaths

public Set getResourcePaths(String path)

getResource

public URL getResource(String path)
                throws MalformedURLException
Throws:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String path)

getRealPath

public String getRealPath(String path)

getServerInfo

public String getServerInfo()

getInitParameter

public String getInitParameter(String name)

getInitParameterNames

public Enumeration getInitParameterNames()

getAttribute

public Object getAttribute(String name)

getAttributeNames

public Enumeration getAttributeNames()

setAttribute

public void setAttribute(String name,
                         Object object)

removeAttribute

public void removeAttribute(String name)

getServletContextName

public String getServletContextName()


Copyright © 2014. All Rights Reserved.