Class ContextSPIDefaultImpl

java.lang.Object
org.apache.wiki.spi.ContextSPIDefaultImpl
All Implemented Interfaces:
ContextSPI

public class ContextSPIDefaultImpl
extends java.lang.Object
implements ContextSPI
Default implementation for ContextSPI
See Also:
ContextSPI
  • Constructor Summary

    Constructors
    Constructor Description
    ContextSPIDefaultImpl()  
  • Method Summary

    Modifier and Type Method Description
    Context 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.
    Context create​(Engine engine, javax.servlet.http.HttpServletRequest request, Command command)
    Creates a new Context for the given Engine, Command and HttpServletRequest.
    Context create​(Engine engine, javax.servlet.http.HttpServletRequest request, Page page)
    Creates a new Context for the given Engine, Page and HttpServletRequest.
    Context create​(Engine engine, Page page)
    Create a new Context for the given Page.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • create

      public Context create​(Engine engine, Page page)
      Create a new Context for the given Page.
      Specified by:
      create in interface ContextSPI
      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.
    • create

      public Context 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.

      Specified by:
      create in interface ContextSPI
      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
    • create

      public Context create​(Engine engine, javax.servlet.http.HttpServletRequest request, Page page)
      Creates a new Context for the given Engine, Page and HttpServletRequest.
      Specified by:
      create in interface ContextSPI
      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
    • create

      public Context 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.
      Specified by:
      create in interface ContextSPI
      Parameters:
      engine - The Engine that is handling the request
      request - the HTTP request
      requestContext - the default context to use