Package org.apache.struts2.factory

# Class DefaultUnknownHandlerFactory

java.lang.Object
org.apache.struts2.factory.DefaultUnknownHandlerFactory

All Implemented Interfaces:
  `UnknownHandlerFactory`

public class DefaultUnknownHandlerFactory extends Object implements UnknownHandlerFactory
Default implementation

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultUnknownHandlerFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `UnknownHandler`
  `buildUnknownHandler(String unknownHandlerName, Map<String,Object> extraContext)`
  Builds unknown handler of given name
  `void`
  `setContainer(Container container)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultUnknownHandlerFactory

    public DefaultUnknownHandlerFactory()

- ## Method Details

  - ### setContainer

    public void setContainer(Container container)

  - ### buildUnknownHandler

    public UnknownHandler buildUnknownHandler(String unknownHandlerName, Map<String,Object> extraContext) throws Exception
    Description copied from interface: `UnknownHandlerFactory`
    Builds unknown handler of given name
    Specified by:
      `buildUnknownHandler` in interface `UnknownHandlerFactory`
    Parameters:
      `unknownHandlerName` - name of unknown handler defined in struts.xml
      `extraContext` - extra params
    Returns:
      instance of `UnknownHandler` with injected dependencies
    Throws:
      `Exception` - in case of any errors