19 package org.turro.action;
21 import java.io.IOException;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
25 import javax.servlet.ServletContext;
26 import javax.servlet.http.HttpServletRequest;
27 import javax.servlet.http.HttpServletResponse;
28 import org.turro.elephant.context.ElephantContext;
29 import org.turro.elephant.direct.DirectContent;
30 import org.turro.elephant.direct.DirectContents;
31 import org.turro.elephant.direct.IDirectContent;
37 @DirectContent(identifier=
"entity-info")
41 return "popupInfo('+Info', '" +
42 createURL(type, link) +
"&path=" + path +
54 getIdentifier() +
"?type=" + type.toString() +
"&link=" + link.toString();
58 return createURL(type, link) +
"&path=" + path;
66 public boolean itsMe(String
id) {
67 return getIdentifier().equals(
id);
71 public boolean myTurn(HttpServletRequest request) {
76 public void execute(ServletContext context, HttpServletRequest request, HttpServletResponse response) {
78 Map<String, String[]> pars = request.getParameterMap();
80 LinkType link = pars.containsKey(
"link") ?
LinkType.valueOf(pars.get(
"link")[0]) :
null;
83 }
catch (IOException ex) {
static boolean writeEntityInfo(Writer out, String path, EntityInfoType type, LinkType link)
static String createURL(EntityInfoType type, LinkType link)
void execute(ServletContext context, HttpServletRequest request, HttpServletResponse response)
static String createURL(String path, EntityInfoType type, LinkType link)
static String createPopup(EntityInfoType type, LinkType link, String path)
static String getIdentifier()
boolean myTurn(HttpServletRequest request)
static String getRootWebPath()
static String logMsg(String msg)
static String getEncoding()
static boolean isYourTurn(HttpServletRequest request, String path)
static final String DIRECT_CONTENT_PATH