|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.tapestry.DanubeContext
public class DanubeContext
WebContext
interface implementation.
Field Summary | |
---|---|
protected Map<String,Object> |
attributes
Contexct attributes |
protected TapestryConnectionHandler |
handler
Reference to handler |
Constructor Summary | |
---|---|
DanubeContext(TapestryConnectionHandler handler)
Constructor |
Method Summary | |
---|---|
void |
describeTo(DescriptionReceiver receiver)
Does nothing |
Object |
getAttribute(String name)
Returns attribute |
List |
getAttributeNames()
Returns attribute names |
List |
getInitParameterNames()
Returns initial parameters names. |
String |
getInitParameterValue(String name)
Gets initial parameter's value |
String |
getMimeType(String resourcePath)
Returns mime type of given resource path |
URL |
getResource(String path)
Returns resource as URL. |
void |
setAttribute(String name,
Object attribute)
Sets attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,Object> attributes
protected TapestryConnectionHandler handler
Constructor Detail |
---|
public DanubeContext(TapestryConnectionHandler handler)
handler
- handlerMethod Detail |
---|
public URL getResource(String path)
getResource
in interface WebContext
path
- resource path. If starts with "/" then it is removed.
public String getMimeType(String resourcePath)
getMimeType
in interface WebContext
resourcePath
- resource path
public List getAttributeNames()
getAttributeNames
in interface AttributeHolder
public Object getAttribute(String name)
getAttribute
in interface AttributeHolder
name
- attribute name
public void setAttribute(String name, Object attribute)
setAttribute
in interface AttributeHolder
name
- attribte nameattribute
- attribute valuepublic List getInitParameterNames()
getInitParameterNames
in interface InitializationParameterHolder
public String getInitParameterValue(String name)
getInitParameterValue
in interface InitializationParameterHolder
name
- attribute name
public void describeTo(DescriptionReceiver receiver)
describeTo
in interface Describable
receiver
- receiver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |