|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface URLMapper
Field Summary | |
---|---|
static java.lang.String |
EXPLICIT_PROFILE_SEPARATOR
Separator ("$") used for specifying multiple ProfileSet/Profile combinations on a URL example URL: http://localhost:7001/bowstreet/webengine/test/ProfiledText/Profile! |
static java.lang.String |
PROFILESET_PROFILE_SEPARATOR
Separator ("!") |
Method Summary | |
---|---|
java.lang.String |
addQueryParameter(java.lang.String url,
java.lang.String name,
java.lang.String value)
addQueryParameter Add a query parameter name/value pair to the specified URL string. |
boolean |
getKeepCurrentPage()
|
java.lang.String |
getStaticContentURL(java.lang.String contentPath,
java.lang.String httpChoice)
getStaticContentURL for content within this app context The URL is /-relative (eg, /bowstreet/webengine/MyModel/Action! |
java.lang.String |
getURL(java.lang.String modelName,
java.lang.String actionName)
getURL returns a / relative URL for a model running in this server/app-context. |
java.lang.String |
getURL(java.lang.String modelName,
java.lang.String actionName,
java.lang.String profileName,
java.lang.String httpChoice)
getURL for a model running in this server/app-context. |
URLMapper |
newInstance()
newInstance - self-creation, internally used for performance/efficiency |
WebAppModelURL |
parseURLRequest(javax.servlet.http.HttpServletRequest req)
parseURLRequest Return the ModelURL components from the request context. |
void |
setKeepCurrentPage(boolean keepCurrentPage)
|
void |
setRequest(javax.servlet.http.HttpServletRequest req)
setRequest Gives the URLMapper a reference to the HTTPServletRequest for getting more info about the request. |
Field Detail |
---|
static final java.lang.String EXPLICIT_PROFILE_SEPARATOR
static final java.lang.String PROFILESET_PROFILE_SEPARATOR
Method Detail |
---|
java.lang.String addQueryParameter(java.lang.String url, java.lang.String name, java.lang.String value)
url
- urlname
- parameter namevalue
- parameter value
boolean getKeepCurrentPage()
java.lang.String getStaticContentURL(java.lang.String contentPath, java.lang.String httpChoice)
contentPath
- path to the content (eg, "/images/icon.gif")httpChoice
- should contain one of: "http" "https" "" or null
java.lang.String getURL(java.lang.String modelName, java.lang.String actionName)
modelName
- model nameactionName
- action name
java.lang.String getURL(java.lang.String modelName, java.lang.String actionName, java.lang.String profileName, java.lang.String httpChoice)
modelName
- model nameactionName
- action nameprofileName
- explicit profile name httpChoice
- should contain one of: "http" "https" "" or null
URLMapper newInstance()
WebAppModelURL parseURLRequest(javax.servlet.http.HttpServletRequest req)
req
- the incoming request to parse.
void setKeepCurrentPage(boolean keepCurrentPage)
keepCurrentPage
- Should subsequently-generated URLs preserve the current page?void setRequest(javax.servlet.http.HttpServletRequest req)
req
- HttpServletRequest
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |