org.nuiton.wikitty.publication
Interface PublicationContext


public interface PublicationContext

Interface for eval action.

Author:
mfortun

Method Summary
 String getArgument(String name)
           
 String getArgument(String name, String defaultValue)
          Get
 Map<String,String> getArguments()
          the map of the arguments in the context
 String getContentType()
          return the actual return content tye for the page
 List<String> getMandatoryArguments()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 WikittyProxy getWikittyProxy()
          the current wikitty proxy
 WikittyService getWikittyService()
          the current wikitty service
 String makeUrl(String url)
          add context to the url and parameter if necessary
 void setContentType(String contentType)
          Set the content type for the return page
 String toString()
           
 

Method Detail

getRequest

javax.servlet.http.HttpServletRequest getRequest()

getResponse

javax.servlet.http.HttpServletResponse getResponse()

getWikittyProxy

WikittyProxy getWikittyProxy()
the current wikitty proxy

Returns:

makeUrl

String makeUrl(String url)
add context to the url and parameter if necessary

Parameters:
url -
Returns:

getWikittyService

WikittyService getWikittyService()
the current wikitty service

Returns:

getMandatoryArguments

List<String> getMandatoryArguments()

getArgument

String getArgument(String name)

getArgument

String getArgument(String name,
                   String defaultValue)
Get

Parameters:
name -
defaultValue -
Returns:

getContentType

String getContentType()
return the actual return content tye for the page

Returns:

setContentType

void setContentType(String contentType)
Set the content type for the return page

Parameters:
contentType -

toString

String toString()
Overrides:
toString in class Object

getArguments

Map<String,String> getArguments()
the map of the arguments in the context

Returns:


Copyright © 2010-2011 CodeLutin. All Rights Reserved.