|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.builders.webapp.methods.ContentHelper
public class ContentHelper
Methods used to work with servable content.
Constructor Summary | |
---|---|
ContentHelper()
|
Method Summary | |
---|---|
static boolean |
contentExists(java.lang.String content)
Check to make sure that the specified content exists on the server |
static void |
convertToAbsoluteURLs(IXml content,
java.lang.String url,
java.lang.String appContext)
Convert relative URL references in HTML to absolute ones. |
static java.lang.String |
generateContentURL(java.lang.String url)
Regen-time: generate code which will build a content URL. |
static java.lang.String |
getContentURL(WebAppAccess webAppAccess,
java.lang.Object urlObj)
Execution-time code to make a content URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentHelper()
Method Detail |
---|
public static boolean contentExists(java.lang.String content)
content
- the content to be verified
public static void convertToAbsoluteURLs(IXml content, java.lang.String url, java.lang.String appContext)
content
- the HTML content as IXml, which is converted in placeurl
- from where this was retrievedappContext
- the application context, if content was imported locallypublic static java.lang.String generateContentURL(java.lang.String url)
url
- the content URL
getContentURL(com.bowstreet.webapp.WebAppAccess, java.lang.Object)
public static java.lang.String getContentURL(WebAppAccess webAppAccess, java.lang.Object urlObj)
webAppAccess
- runtime access for current modelurlObj
- the content URL - can be relative or absolute, and can be wrapped as the text of an IXml element
generateContentURL(java.lang.String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |