Sun and Oracle Community Voices How to Buy Log In United States [Change] English

»  Spotlight Articles
»  Projects
»  Publications
»  People
»  Awards
»  Events
»  Downloads
»  Internships
»  Contrarian Minds
»  About Sun Labs
Brazil project: Class MultiProxyHandler

sunlabs.brazil.handler Class MultiProxyHandler

java.lang.Object
  |
  +--sunlabs.brazil.handler.GenericProxyHandler
        |
        +--sunlabs.brazil.handler.MultiProxyHandler
All Implemented Interfaces:
Handler

public class MultiProxyHandler
extends GenericProxyHandler

Handler for permitting multiple cross connected virtual web sites. Each handler instance adds its prefix and destination to a static hashtable so the URL rewrite rules rewrite all of them correctly.

The GenericProxyHandler rewrites all of the links in each wepage to point back to the local. machine. Using this handler, if multiple virtual websites are configured, then links in one site that point to other virtual web sites are rewritten to point locally as well.


Fields inherited from class sunlabs.brazil.handler.GenericProxyHandler
host, HOST, NL, port, PORT, prefix, PREFIX, PROXY_HOST, PROXY_PORT, proxyHost, proxyPort, requestPrefix, urlPrefix
 
Constructor Summary
MultiProxyHandler()            
 
Method Summary
 void addMap(MapPage map)           this gets called by the parent class.
 boolean init(Server server, String prefix)           Initialize this handler.
 
Methods inherited from class sunlabs.brazil.handler.GenericProxyHandler