|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.publication.WikittyPublicationContext
public class WikittyPublicationContext
Context de la requete en cours. Les parametres de la requete sont parses et mis dans deux variables
| Field Summary | |
|---|---|
static String |
ACTION_PREFIX
|
protected String |
actionName
|
protected static Map<String,WikittyPublicationAction> |
actions
|
protected org.nuiton.util.ApplicationConfig |
appConfig
|
protected Map<String,byte[]> |
argumentFiles
|
protected Map<String,String> |
arguments
|
static String |
CONFIG_FILE
configuration option name FIXME poussin 20101206 use OptionDef |
protected String |
contentType
|
protected List<String> |
mandatoryArguments
|
protected String |
path
|
protected WikittyProxy |
proxy
|
protected javax.servlet.http.HttpServletRequest |
req
|
protected javax.servlet.http.HttpServletResponse |
resp
|
protected static Map<String,WikittyService> |
services
|
protected String |
wsContext
|
| Constructor Summary | |
|---|---|
WikittyPublicationContext(org.nuiton.util.ApplicationConfig appConfig)
|
|
| Method Summary | ||
|---|---|---|
protected void |
addRequiredExtension(WikittyService ws)
add here all extension that WikittyService must know |
|
WikittyPublicationAction |
getAction()
|
|
|
getAction(Class<E> actionClass)
|
|
WikittyPublicationAction |
getAction(String actionName)
|
|
String |
getActionName()
le nom de l'action a faire |
|
org.nuiton.util.ApplicationConfig |
getAppConfig()
|
|
String |
getArgument(String name,
String defaultValue)
|
|
Map<String,byte[]> |
getArgumentFiles()
|
|
Map<String,String> |
getArguments()
|
|
String |
getContentType()
|
|
List<String> |
getMandatoryArguments()
|
|
String |
getPath()
le reste de l'url apres l'action |
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
|
WikittyProxy |
getWikittyProxy()
|
|
WikittyService |
getWikittyService()
|
|
String |
makeUrl(String url)
add context to the url and parameter if necessary |
|
void |
parse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
set attributes: req wsContext actionName mandatoryArguments arguments |
|
void |
setContentType(String contentType)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_FILE
public static final String ACTION_PREFIX
protected static final Map<String,WikittyService> services
protected static final Map<String,WikittyPublicationAction> actions
protected org.nuiton.util.ApplicationConfig appConfig
protected javax.servlet.http.HttpServletRequest req
protected javax.servlet.http.HttpServletResponse resp
protected String wsContext
protected String actionName
protected String path
protected List<String> mandatoryArguments
protected Map<String,String> arguments
protected Map<String,byte[]> argumentFiles
protected WikittyProxy proxy
protected String contentType
| Constructor Detail |
|---|
public WikittyPublicationContext(org.nuiton.util.ApplicationConfig appConfig)
| Method Detail |
|---|
protected void addRequiredExtension(WikittyService ws)
public void parse(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
req - public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public org.nuiton.util.ApplicationConfig getAppConfig()
public String getActionName()
public String getPath()
public WikittyProxy getWikittyProxy()
public String makeUrl(String url)
url -
public WikittyService getWikittyService()
public List<String> getMandatoryArguments()
public Map<String,String> getArguments()
public Map<String,byte[]> getArgumentFiles()
public String getArgument(String name, String defaultValue)
public WikittyPublicationAction getAction()
public <E extends WikittyPublicationAction> E getAction(Class<E> actionClass)
public WikittyPublicationAction getAction(String actionName)
public String getContentType()
public void setContentType(String contentType)
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||