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
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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)
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 handledresponse
- 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