@ApplicationScoped public class URLMarkupGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_RUNNER |
| Constructor and Description |
|---|
URLMarkupGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseURI()
Mapping to the controller servlet.
|
String |
getContextHost(javax.servlet.ServletRequest request) |
String |
getMarkup(String bean,
String action,
Map params)
Get a link to executing an action on a bean.
|
protected String |
getParameterMarkup(String name,
Object value) |
String |
getParamsMarkup(Map params)
Convert a parameter map (string->string) to its URL form name1=value1&name2=value2 ...
|
String |
getPermanentLink(String bean,
String action,
Map params)
Get a permanent link to a given action on a bean
|
String |
getServletMapping()
Get the base URI for any markup, that is, the base path plus the servlet mapping.
|
static URLMarkupGenerator |
lookup() |
public static final String COMMAND_RUNNER
public static URLMarkupGenerator lookup()
public String getPermanentLink(String bean, String action, Map params)
bean - Bean handler that will perform the actionaction - Bean's method that will be invokedparams - Extra parameters for linkpublic String getServletMapping()
public String getBaseURI()
public String getMarkup(String bean, String action, Map params)
public String getParamsMarkup(Map params)
params - parameter map to process.public String getContextHost(javax.servlet.ServletRequest request)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.