net.dpml.http
Interface ContextHandlerContext

All Known Subinterfaces:
ResourceContextHandler.Context, ServletContextHandler.Context, WebAppContextHandler.Context

public interface ContextHandlerContext

Common http context handler context contract.

Version:
0.0.0
Author:
Digital Product Meta Library

Method Summary
 ClassLoader getClassLoader(ClassLoader classloader)
          Get the classloader to assign to the context handler.
 String[] getConnectors(String[] connectors)
          Get the array of connectors.
 String getContextPath()
          Get the context path under which the http context instance will be associated.
 String getDisplayName(String name)
          Get the context handler display name.
 ErrorHandler getErrorHandler(ErrorHandler handler)
          Get the assigned error handler.
 Map getMimeTypes(Map map)
          Get the mime type mapping.
 String[] getVirtualHosts(String[] hosts)
          Get the array of virtual hosts.
 String[] getWelcomeFiles(String[] values)
          Get the array of welcome files.
 

Method Detail

getVirtualHosts

public String[] getVirtualHosts(String[] hosts)
Get the array of virtual hosts.

Parameters:
hosts - the default virtual host array
Returns:
the resolved virtual host array

getConnectors

public String[] getConnectors(String[] connectors)
Get the array of connectors. The function returns the set of connectors in the form host:port.

Parameters:
connectors - the default connector array
Returns:
the resolved host array

getWelcomeFiles

public String[] getWelcomeFiles(String[] values)
Get the array of welcome files.

Parameters:
values - the default welcome file values
Returns:
the resolved array of welcome files

getClassLoader

public ClassLoader getClassLoader(ClassLoader classloader)
Get the classloader to assign to the context handler.

Parameters:
classloader - the default classloader
Returns:
the resolved classloader

getContextPath

public String getContextPath()
Get the context path under which the http context instance will be associated.

Returns:
the assigned context path

getDisplayName

public String getDisplayName(String name)
Get the context handler display name.

Parameters:
name - the default name
Returns:
the resolved name

getMimeTypes

public Map getMimeTypes(Map map)
Get the mime type mapping.

Parameters:
map - the default value
Returns:
the resolved value

getErrorHandler

public ErrorHandler getErrorHandler(ErrorHandler handler)
Get the assigned error handler.

Parameters:
handler - the default handler
Returns:
the resolved handler