Package org.opencms.file.wrapper
Class CmsResourceExtensionWrapperJsp
- java.lang.Object
-
- org.opencms.file.wrapper.A_CmsResourceWrapper
-
- org.opencms.file.wrapper.A_CmsResourceExtensionWrapper
-
- org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp
-
- All Implemented Interfaces:
I_CmsResourceWrapper
public class CmsResourceExtensionWrapperJsp extends A_CmsResourceExtensionWrapper
A resource type wrapper for jsp files, which adds the correct file extension "jsp" to the resources.- Since:
- 6.5.6
-
-
Field Summary
-
Fields inherited from class org.opencms.file.wrapper.A_CmsResourceWrapper
m_isWrappedResource
-
-
Constructor Summary
Constructors Constructor Description CmsResourceExtensionWrapperJsp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkTypeId(int typeId)
Checks if the type id belongs to this resource wrapper.protected java.lang.String
getExtension()
Returns the extension to add and/or remove to/from the resource.-
Methods inherited from class org.opencms.file.wrapper.A_CmsResourceExtensionWrapper
copyResource, createResource, deleteResource, getLock, isWrappedResource, lockResource, moveResource, readFile, readResource, restoreLink, rewriteLink, unlockResource, wrapResource, writeFile
-
Methods inherited from class org.opencms.file.wrapper.A_CmsResourceWrapper
addResourcesToFolder, configure
-
-
-
-
Constructor Detail
-
CmsResourceExtensionWrapperJsp
public CmsResourceExtensionWrapperJsp()
-
-
Method Detail
-
checkTypeId
protected boolean checkTypeId(int typeId)
Description copied from class:A_CmsResourceExtensionWrapper
Checks if the type id belongs to this resource wrapper.- Specified by:
checkTypeId
in classA_CmsResourceExtensionWrapper
- Parameters:
typeId
- the type id to check- Returns:
- true if the type id belongs to this wrapper otherwise false
- See Also:
A_CmsResourceExtensionWrapper.checkTypeId(int)
-
getExtension
protected java.lang.String getExtension()
Description copied from class:A_CmsResourceExtensionWrapper
Returns the extension to add and/or remove to/from the resource.- Specified by:
getExtension
in classA_CmsResourceExtensionWrapper
- Returns:
- the extension to use
- See Also:
A_CmsResourceExtensionWrapper.getExtension()
-
-