|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.file.CmsStaticExport
Holds the functionaility to export resources from the cms to the filesystem.
| Field Summary | |
static Vector |
m_dynamicExportNameRules
Additional rules for the export generated dynamical. |
static Vector |
m_dynamicExportNameRulesExtern
|
static Vector |
m_dynamicExportRulesExtern
Additional rules for the export generated dynamical. |
static Vector |
m_dynamicExportRulesOnline
Additional rules for the export generated dynamical. |
static Vector |
m_rulesForHttpsEnabledResources
This rules are only tho show if a resource is enabled with and without https. they are generated by the export property (values https_enabled for exportable resources(true) and dynamic_https_enabled for dynamic resources (dynamic). |
| Constructor Summary | |
CmsStaticExport(CmsObject cms,
Vector linksToExport)
This constructor is used to export the files on a slave server in clustering mode. |
|
CmsStaticExport(CmsObject cms,
Vector startpoints,
boolean doTheExport,
Vector changedLinks,
Vector allExportedLinks,
CmsPublishedResources changedResources,
I_CmsReport report)
This constructs a new CmsStaticExport-object which generates static html pages in the filesystem. |
|
| Method Summary | |
static String |
handleDynamicRules(CmsObject cms,
String link,
int modus,
Vector paramterOnly)
this method handles the dynamic rules created by opencms in using the properties of resources. |
static boolean |
needsScheme(String link)
checks if a link on a https page needs the http prefix. |
static Hashtable |
parseQueryString(String s)
Parses a query string passed from the client to the server and builds a HashTable object
with key-value pairs.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Vector m_dynamicExportNameRules
public static Vector m_dynamicExportNameRulesExtern
public static Vector m_dynamicExportRulesOnline
public static Vector m_dynamicExportRulesExtern
public static Vector m_rulesForHttpsEnabledResources
| Constructor Detail |
public CmsStaticExport(CmsObject cms,
Vector linksToExport)
throws CmsException
cms - The cms-object to work with.linksToExport - A vector of links that were exported on the master server.
public CmsStaticExport(CmsObject cms,
Vector startpoints,
boolean doTheExport,
Vector changedLinks,
Vector allExportedLinks,
CmsPublishedResources changedResources,
I_CmsReport report)
throws CmsException
cms - the cms-object to work with.changedLinks - here we return the changed links for the search module (worked with the getlinksubstitution() method.allExportedLinks - here we return the links that was exportedreport - the cmsReport to handle the log messages.
CmsException - the CmsException is thrown if something goes wrong.| Method Detail |
public static boolean needsScheme(String link)
link - the link to testpublic static Hashtable parseQueryString(String s)
HashTable object
with key-value pairs.
The query string should be in the form of a string
packaged by the GET or POST method, that is, it
should have key-value pairs in the form key=value,
with each pair separated from the next by a & character.
A key can appear more than once in the query string with different values. However, the key appears only once in the hashtable, with its value being an array of strings containing the multiple values sent by the query string.
The keys and values in the hashtable are stored in their decoded form, so any + characters are converted to spaces, and characters sent in hexadecimal notation (like %xx) are converted to ASCII characters.
s - a string containing the query to be parsed
HashTable object built
from the parsed key-value pairs
IllegalArgumentException - if the query string
is invalid
public static String handleDynamicRules(CmsObject cms,
String link,
int modus,
Vector paramterOnly)
link - The link that has to be replaced.modus - The modus OpenCms runs in.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||