org.sapia.ubik.rmi.server.transport.http
Class ServiceMapper

java.lang.Object
  extended by org.sapia.ubik.rmi.server.transport.http.ServiceMapper
All Implemented Interfaces:
simple.http.ProtocolHandler

public class ServiceMapper
extends java.lang.Object
implements simple.http.ProtocolHandler

An instance of this class maps context paths to Simple services (as specified by the Simple API).

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2004 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
ServiceMapper()
           
 
Method Summary
 void addService(java.lang.String contextPath, simple.http.ProtocolHandler svc)
          Adds the given service to this object; internally maps it to the given context path.
 void addService(java.lang.String contextPath, simple.http.load.Service svc)
           
 void handle(simple.http.Request req, simple.http.Response res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMapper

public ServiceMapper()
Method Detail

addService

public void addService(java.lang.String contextPath,
                       simple.http.ProtocolHandler svc)
Adds the given service to this object; internally maps it to the given context path.

Parameters:
contextPath - the path that follows the host:port in a HTTP URL.
svc - a Service instance, as specified by the Simple API.

addService

public void addService(java.lang.String contextPath,
                       simple.http.load.Service svc)

handle

public void handle(simple.http.Request req,
                   simple.http.Response res)
Specified by:
handle in interface simple.http.ProtocolHandler
See Also:
ProtocolHandler.handle(simple.http.Request, simple.http.Response)


Copyright © 2010 Sapia OSS. All Rights Reserved.