Package org.apache.wiki.api.spi
Interface ContextSPI
- 
- All Known Implementing Classes:
- ContextSPIDefaultImpl
 
 public interface ContextSPI SPI used to locate and provideContextinstances.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Contextcreate(Engine engine, javax.servlet.http.HttpServletRequest request, java.lang.String requestContext)Creates a new Context from a supplied HTTP request, using a default wiki context.Contextcreate(Engine engine, javax.servlet.http.HttpServletRequest request, Command command)Creates a new Context for the given Engine, Command and HttpServletRequest.Contextcreate(Engine engine, javax.servlet.http.HttpServletRequest request, Page page)Creates a new Context for the given Engine, Page and HttpServletRequest.Contextcreate(Engine engine, Page page)Create a new Context for the given Page.
 
- 
- 
- 
Method Detail- 
createContext create(Engine engine, Page page) Create a new Context for the given Page.- Parameters:
- engine- The Engine that is handling the request.
- page- The Page. If you want to create a Context for an older version of a page, you must use this method.
 
 - 
createContext create(Engine engine, javax.servlet.http.HttpServletRequest request, Command command) Creates a new Context for the given Engine, Command and HttpServletRequest. This constructor will also look up the HttpSession associated with the request, and determine if a Session object is present. If not, a new one is created. - Parameters:
- engine- The Engine that is handling the request
- request- The HttpServletRequest that should be associated with this context. This parameter may be- null.
- command- the command
 
 - 
createContext create(Engine engine, javax.servlet.http.HttpServletRequest request, Page page) Creates a new Context for the given Engine, Page and HttpServletRequest.- Parameters:
- engine- The Engine that is handling the request
- request- The HttpServletRequest that should be associated with this context. This parameter may be- null.
- page- The WikiPage. If you want to create a WikiContext for an older version of a page, you must supply this parameter
 
 - 
createContext create(Engine engine, javax.servlet.http.HttpServletRequest request, java.lang.String requestContext) Creates a new Context from a supplied HTTP request, using a default wiki context.- Parameters:
- engine- The Engine that is handling the request
- request- the HTTP request
- requestContext- the default context to use
 
 
- 
 
-