|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.components.deli.DeliImpl
Allows the use of DELI to provide CC/PP or UAProf support. For more details of DELI see the Technical Report DELI: A Delivery Context Library for CC/PP and UAProf.
Inner Class Summary | |
class |
DeliImpl.CocoonServletContext
Stub implementation of Servlet Context |
class |
DeliImpl.CocoonServletRequest
Stub implementation of HttpServletRequest |
Field Summary | |
protected org.apache.avalon.framework.component.ComponentManager |
manager
The component manager |
protected org.apache.avalon.excalibur.xml.Parser |
parser
Parser used to construct the DOM tree to import the profile to a stylesheet |
protected DeliImpl.CocoonServletContext |
servletContext
A context, used to retrieve the path to the configuration file |
Fields inherited from interface org.apache.cocoon.components.deli.Deli |
ROLE |
Constructor Summary | |
DeliImpl()
|
Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Compose this class |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Contextualize this class |
void |
dispose()
Dispose of this class |
com.hp.hpl.deli.Profile |
getProfile(Request theRequest)
Process a HttpServletRequest and either extract CC/PP or UAProf information from it and use this information to resolve a profile or examine the user agent string, match this using the DELI legacy device database, and use this information to retrieve the appropriate CC/PP profile. |
org.w3c.dom.Document |
getUACapabilities(com.hp.hpl.deli.Profile theProfile)
Convert a profile stored as a vector of profile attributes to a DOM tree. |
org.w3c.dom.Document |
getUACapabilities(Request theRequest)
Convert a profile stored as a vector of profile attributes to a DOM tree. |
void |
initialize()
Initialize |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters params)
Configure this class |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.avalon.framework.component.ComponentManager manager
protected org.apache.avalon.excalibur.xml.Parser parser
protected DeliImpl.CocoonServletContext servletContext
Constructor Detail |
public DeliImpl()
Method Detail |
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
public void compose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
compose
in interface org.apache.avalon.framework.component.Composable
public void parameterize(org.apache.avalon.framework.parameters.Parameters params)
parameterize
in interface org.apache.avalon.framework.parameters.Parameterizable
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
public com.hp.hpl.deli.Profile getProfile(Request theRequest) throws java.io.IOException, javax.servlet.ServletException, java.lang.Exception
theRequest
- The Request.IOException.
- ServletException.
- Exception.
- public org.w3c.dom.Document getUACapabilities(com.hp.hpl.deli.Profile theProfile) throws java.lang.Exception
theProfile
- The profile as a vector of profile attributes.public org.w3c.dom.Document getUACapabilities(Request theRequest) throws java.io.IOException, java.lang.Exception
Deli
getUACapabilities
in interface Deli
org.apache.cocoon.components.deli.Deli
theRequest
- The Request.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |