home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 9 / IOPROG_9.ISO / contrib / iis4 / iis4_07.cab / Server.java < prev    next >
Encoding:
Java Source  |  1997-09-04  |  1.9 KB  |  71 lines

  1. /*    ********************************************************************************
  2.     Server.java ********************************************************************
  3.     ********************************************************************************  */
  4.  
  5. package aspcomp;
  6.  
  7. import com.ms.asp.*;
  8.  
  9. /**
  10.  * Cover class for the ASP Session intrinsic.
  11.  */
  12.  
  13. public class Server 
  14. {
  15.  
  16. /*    ********************************************************************************
  17.     Constructor ********************************************************************
  18.     ********************************************************************************  */
  19.  
  20.     public Server(IServer server) {
  21.         m_IServer = server;
  22.     }
  23.  
  24.  
  25. /*    ********************************************************************************
  26.     Internal (Private) Variables ***************************************************
  27.     ********************************************************************************  */
  28.  
  29.     private IServer m_IServer;
  30.  
  31.  
  32. /*    ********************************************************************************
  33.     External (Public) Methods ******************************************************
  34.     ********************************************************************************  */
  35.  
  36.     public String mapPath(String path) 
  37.     {
  38.         return m_IServer.MapPath(path);
  39.     }
  40.  
  41.     public String URLEncode(String str) 
  42.     {
  43.         return m_IServer.URLEncode(str);
  44.     }
  45.  
  46.     public String URLPathEncode(String str) 
  47.     {
  48.         return m_IServer.URLPathEncode(str);
  49.     }
  50.  
  51.     public String HTMLEncode(String str) 
  52.     {
  53.         return m_IServer.HTMLEncode(str);
  54.     }
  55.  
  56.     public int getScriptTimeout() 
  57.     {
  58.         return m_IServer.getScriptTimeout();
  59.     }
  60.  
  61.     public void setScriptTimeout(int timeout) 
  62.     {
  63.         m_IServer.putScriptTimeout(timeout);
  64.     }
  65.  
  66.     public Object createObject(String progID) 
  67.     {
  68.         return m_IServer.CreateObject(progID);
  69.     }
  70. }
  71.