|
void | processRequest (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
|
void | doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
|
void | doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 41 of file TagsServlet.java.
◆ doGet()
void org.turro.elephant.web.tags.TagsServlet.doGet |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
◆ doPost()
void org.turro.elephant.web.tags.TagsServlet.doPost |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
◆ getServletInfo()
String org.turro.elephant.web.tags.TagsServlet.getServletInfo |
( |
| ) |
|
◆ navigateAndSet()
static String org.turro.elephant.web.tags.TagsServlet.navigateAndSet |
( |
String |
fromTag, |
|
|
String |
path |
|
) |
| |
|
static |
Definition at line 49 of file TagsServlet.java.
50 return ElephantContext.getRootWebPath() +
"/tag_/" + CONTEXT_TO +
"?" +
51 MarkerHelper.setObfuscatedPars(
"tag=" + fromTag +
";path=" + path);
◆ navigateBack()
static String org.turro.elephant.web.tags.TagsServlet.navigateBack |
( |
IConstructor |
constructor, |
|
|
String |
path |
|
) |
| |
|
static |
Definition at line 54 of file TagsServlet.java.
55 if(Strings.isBlank(path)) {
56 String backTag = SessionTags.get(constructor).previous();
57 if(!Strings.isBlank(backTag)) {
58 return ElephantContext.getRootWebPath() +
"/tag_/" + backTag +
"?" +
59 MarkerHelper.setObfuscatedPars(
"back=true");
62 return ElephantContext.getRootWebPath() +
"/tag_/" + CONTEXT_TO +
"?" +
63 MarkerHelper.setObfuscatedPars(
"back=true;path=" + path);
◆ navigateFromTo()
static String org.turro.elephant.web.tags.TagsServlet.navigateFromTo |
( |
String |
fromTag, |
|
|
String |
toTag |
|
) |
| |
|
static |
Definition at line 45 of file TagsServlet.java.
46 return ElephantContext.getRootWebPath() +
"/tag_/" + toTag +
"?" + MarkerHelper.setObfuscatedPars(
"tag=" + fromTag);
◆ processRequest()
void org.turro.elephant.web.tags.TagsServlet.processRequest |
( |
HttpServletRequest |
request, |
|
|
HttpServletResponse |
response |
|
) |
| throws ServletException, IOException |
|
protected |
Definition at line 68 of file TagsServlet.java.
69 KeyValueMap kvm = MarkerHelper.getObfuscatedParameters(request);
71 if(kvm.containsKey(
"tag")) SessionTags.get(request, response).add(kvm.get(
"tag"));
72 if(kvm.containsKey(
"back")) SessionTags.get(request, response).removeLast();
73 if(kvm.containsKey(
"path")) {
74 response.sendRedirect(request.getContextPath() + kvm.get(
"path"));
78 Path path = Path.pathFrom(request.getPathInfo());
79 ElContext context = ElContextMap.getContextFromWebTag(path.getRoot());
81 response.setStatus(HttpServletResponse.SC_FOUND);
82 response.sendRedirect(request.getContextPath() + context.getPath());
The documentation for this class was generated from the following file: