Package nl.gx.webmanager.foundation
Class SiteWorksWrapperFactory
- java.lang.Object
-
- nl.gx.webmanager.foundation.SiteWorksWrapperFactory
-
- All Implemented Interfaces:
WrapperFactory
- Direct Known Subclasses:
PersonalizationFactory
public class SiteWorksWrapperFactory extends Object implements WrapperFactory
Wrapper factory that wraps Siteworks objects using the traditional HtmlObject based wrappers (wmapi).
-
-
Field Summary
-
Fields inherited from interface nl.gx.webmanager.wrapper.WrapperFactory
CUSTOM_ELEMENT_CLASSDECL, CUSTOM_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description SiteWorksWrapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
createInstance(String targetClassname)
Create new object of class represented by the string.javax.servlet.http.HttpServletRequest
getHttpServletRequest()
javax.servlet.http.HttpServletResponse
getHttpServletResponse()
Object
getInstance(int id, Class targetClass)
Returns an instance of the specified class wrapping the specified id.Object
getInstance(int id, String targetClassname)
Returns an instance of the class represented by the given string.void
setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Set the request object.void
setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
Set the response object.
-
-
-
Method Detail
-
setHttpServletRequest
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Description copied from interface:WrapperFactory
Set the request object.- Specified by:
setHttpServletRequest
in interfaceWrapperFactory
- Parameters:
request
- The request for the factory, that can be used for creating new instances.
-
setHttpServletResponse
public void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
Description copied from interface:WrapperFactory
Set the response object.- Specified by:
setHttpServletResponse
in interfaceWrapperFactory
- Parameters:
response
- The request for the factory
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
-
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
-
getInstance
public Object getInstance(int id, Class targetClass)
Description copied from interface:WrapperFactory
Returns an instance of the specified class wrapping the specified id.- Specified by:
getInstance
in interfaceWrapperFactory
- Parameters:
id
- The identifier for the new instance.targetClass
- The type of the new instance- Returns:
- The new instance of the specified type, with the specified id.
-
getInstance
public Object getInstance(int id, String targetClassname)
Description copied from interface:WrapperFactory
Returns an instance of the class represented by the given string. Needed for classes that are only loaded in the framework and not in SiteWorks.- Specified by:
getInstance
in interfaceWrapperFactory
- Returns:
- Object with HtmlObject-id id and of class represented by targetClassname
-
createInstance
public Object createInstance(String targetClassname)
Description copied from interface:WrapperFactory
Create new object of class represented by the string. Should be a fully qualified classname- Specified by:
createInstance
in interfaceWrapperFactory
- Returns:
- Object of given class
-
-