|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.deli.DeliImpl
public final class 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.
Nested Class Summary | |
---|---|
static class |
DeliImpl.CocoonServletContext
Stub implementation of Servlet Context |
static class |
DeliImpl.CocoonServletRequest
Stub implementation of HttpServletRequest |
Field Summary | |
---|---|
protected ServiceManager |
manager
The service manager |
protected DOMParser |
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 |
contextualize(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. |
Document |
getUACapabilities(com.hp.hpl.deli.Profile theProfile)
Convert a profile stored as a vector of profile attributes to a DOM tree. |
Document |
getUACapabilities(Request theRequest)
Convert a profile stored as a vector of profile attributes to a DOM tree. |
void |
initialize()
Initialize |
void |
parameterize(Parameters params)
Configure this class |
void |
service(ServiceManager manager)
Service this class |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ServiceManager manager
protected DOMParser parser
protected DeliImpl.CocoonServletContext servletContext
Constructor Detail |
---|
public DeliImpl()
Method Detail |
---|
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void parameterize(Parameters params)
parameterize
in interface Parameterizable
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
public com.hp.hpl.deli.Profile getProfile(Request theRequest) throws IOException, ServletException, Exception
getProfile
in interface Deli
theRequest
- The Request.
IOException
ServletException
Exception
public Document getUACapabilities(com.hp.hpl.deli.Profile theProfile) throws Exception
theProfile
- The profile as a vector of profile attributes.
Exception
public Document getUACapabilities(Request theRequest) throws IOException, Exception
Deli
getUACapabilities
in interface Deli
theRequest
- The Request.
IOException
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |