: Class VirtualHostHandler

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mortbay.HTTP.Handler
Class VirtualHostHandler

    java.lang.Object
      |
      +--com.mortbay.HTTP.Handler.NullHandler
            |
            +--com.mortbay.HTTP.Handler.VirtualHostHandler

public class VirtualHostHandler
extends NullHandler

Request path translation handler Modified translate handler for virtual host translations. Usage: main.root.Vhost.PROPERTY.//ahma.dhs.org% : /ahma Most accesses go to the server itself, but if server is accessed with http://ahma.dhs.org/ the accesses are actually mapped to /ahma/.

Version:
  $Id: VirtualHostHandler.java,v 1.2 2000/03/22 17:46:44 gregw Exp $
Author:
  Marko P. O. Nippula
See Also:
  `Interface.HttpHandler`

Fields inherited from class com.mortbay.HTTP.Handler.NullHandler
`httpServer`

Constructor Summary
`VirtualHostHandler(PathMap translations)`
`VirtualHostHandler(java.util.Properties properties)` Construct basic auth handler.

Method Summary
`void` | `handle(HttpRequest request, HttpResponse response)` Constructor
`void` | `setProperties(java.util.Properties properties)` Configure from Properties.
`java.lang.String` | `translate(java.lang.String address)` Translate a path string.

Methods inherited from class com.mortbay.HTTP.Handler.NullHandler
`destroy, getProperties, servlet, servletNames, setServer`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### VirtualHostHandler

    public VirtualHostHandler(java.util.Properties properties)
                       throws java.io.IOException

  Construct basic auth handler.
  Parameters:
    `properties` - Passed to setProperties

### VirtualHostHandler

    public VirtualHostHandler(PathMap translations)

Method Detail

### setProperties

    public void setProperties(java.util.Properties properties)
                       throws java.io.IOException

  Configure from Properties.
  Overrides:
    setProperties in class NullHandler
  Parameters:
    `properties` -
  Throws:
    java.io.IOException -

### handle

    public void handle(HttpRequest request,
                       HttpResponse response)
                throws java.lang.Exception

  Description copied from interface: HttpHandler
  Constructor
  Overrides:
    handle in class NullHandler
  Tags copied from interface: HttpHandler
  Parameters:
    `request` - The HTTP requests to be handled
    `response` - The HTTP response to be used.

### translate

    public java.lang.String translate(java.lang.String address)

  Description copied from interface: HttpHandler
  Translate a path string. Used by getRealPath method.
  Overrides:
    translate in class NullHandler
  Tags copied from interface: HttpHandler
  Returns:
    the translated path

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD