|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.wvs.server.util.WVSContentHelper
Nested Class Summary | |
static class |
WVSContentHelper.RepServer
|
Field Summary | |
private static boolean |
ACCESS_CHECK
|
private static String |
COID
|
private static String |
CS
|
private static String |
DEFAULT_REP_METHOD
|
private static String |
DOWNLOAD_CLASS
|
private static String |
DOWNLOAD_METHOD
|
private static String |
LOCATION_TAG
|
private static String |
OID
|
private static String |
REP_SERVER
|
private static boolean |
SERVER
|
private static boolean |
USE_REPLICATION
|
private static boolean |
USE_WVS_SERVLET
|
private static boolean |
VERBOSE
|
Constructor Summary | |
WVSContentHelper()
|
Method Summary | |
static URL |
getDefaultRepURL(Persistable p,
int configType,
WTContainerRef containerRef)
Get the redirect URL to servlet that will find the default representation and redirect to the view url of the ed file for that representation Supported API: false |
static URL |
getDownloadURL(ApplicationData appData,
ContentHolder holder)
Get the download URL to servlet that will lookup the replcia site at download time, as opposed to the look up at time when URL is generated as with getViewContentURL. |
static String |
getDownloadURLForType(ContentHolder doc,
ContentRoleType role)
Get the download URL to servlet that will lookup the replcia site at download time, as opposed to the look up at time when URL is generated as with getViewContentURL. |
static WTKeyedMap |
getDownloadURLForType(WTCollection collection,
ContentRoleType role)
|
static URL |
getViewContentURL(ApplicationData appData,
ContentHolder holder)
Get the view URL. |
static void |
main(String[] args)
|
static void |
redirectDefaultRep(HTTPRequest request,
HTTPResponse response)
The method redirects to the ed file of the default Representatino |
static void |
redirectDownload(HTTPRequest request,
HTTPResponse response)
The method redirects downloading of content. |
private static void |
replicateCH(String oid,
String sitename,
String vaultname)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String DOWNLOAD_CLASS
private static final String DOWNLOAD_METHOD
private static final String DEFAULT_REP_METHOD
private static final String LOCATION_TAG
private static final String OID
private static final String CS
private static final String COID
private static boolean VERBOSE
private static boolean USE_REPLICATION
private static boolean USE_WVS_SERVLET
private static boolean ACCESS_CHECK
private static final String REP_SERVER
private static final boolean SERVER
Constructor Detail |
public WVSContentHelper()
Method Detail |
public static URL getViewContentURL(ApplicationData appData, ContentHolder holder) throws WTException
WTException
public static String getDownloadURLForType(ContentHolder doc, ContentRoleType role)
WTException
public static WTKeyedMap getDownloadURLForType(WTCollection collection, ContentRoleType role)
public static URL getDownloadURL(ApplicationData appData, ContentHolder holder) throws WTException
WTException
public static void redirectDownload(HTTPRequest request, HTTPResponse response) throws WTException, IOException, PropertyVetoException
request
- response
-
WTException
IOException
PropertyVetoException
public static URL getDefaultRepURL(Persistable p, int configType, WTContainerRef containerRef) throws WTException
p
- configType
- containerRef
-
WTException
public static void redirectDefaultRep(HTTPRequest request, HTTPResponse response) throws WTException, IOException, PropertyVetoException
request
- response
-
WTException
IOException
PropertyVetoException
public static void main(String[] args)
private static void replicateCH(String oid, String sitename, String vaultname) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |