jasp.buildin
Class Server

java.lang.Object
  |
  +--jasp.buildin.Server

public class Server
extends java.lang.Object

The Server object provides access to methods and properties on the server. Most of these methods and properties serve as utility functions.


Constructor Summary
Server()
           
 
Method Summary
static java.lang.Object CreateObject(java.lang.String progID)
          CreateObject Creates an instance of a server component.
static void Execute(java.lang.String aspfile)
          Calls an .asp file and processes it as if it were part of the calling .asp.
static ASPError GetLastError()
          If a custom error has been defined for an ASP application, it may refer to an .asp file.
static long getScriptTimeout()
           
static java.lang.String HTMLEncode(java.lang.String str)
          Applies HTML encoding to the specified string.
static java.lang.String MapPath(java.lang.String path)
          Maps the specified relative or virtual path to the corresponding physical directory on the server.
static jasp.buildin.ASPServer server()
          Returns a Server object instance
static void setScriptTimeout(long timeout)
          Specifies the maximum number of seconds that a script can run before the server terminates it.
static void Transfer(java.lang.String path)
          ends the request from one .asp file, to a second .asp file.
static java.lang.String URLEncode(java.lang.String str)
          Applies URL encoding rules, including escape characters, to the string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

server

public static jasp.buildin.ASPServer server()
Returns a Server object instance

setScriptTimeout

public static void setScriptTimeout(long timeout)
Specifies the maximum number of seconds that a script can run before the server terminates it.

getScriptTimeout

public static long getScriptTimeout()

CreateObject

public static java.lang.Object CreateObject(java.lang.String progID)
                                     throws java.lang.Exception
CreateObject Creates an instance of a server component. for java, this is calling the constructor of class object

Execute

public static void Execute(java.lang.String aspfile)
                    throws java.lang.Exception
Calls an .asp file and processes it as if it were part of the calling .asp.

HTMLEncode

public static java.lang.String HTMLEncode(java.lang.String str)
Applies HTML encoding to the specified string.

MapPath

public static java.lang.String MapPath(java.lang.String path)
Maps the specified relative or virtual path to the corresponding physical directory on the server.

URLEncode

public static java.lang.String URLEncode(java.lang.String str)
Applies URL encoding rules, including escape characters, to the string.

Transfer

public static void Transfer(java.lang.String path)
                     throws java.lang.Exception
ends the request from one .asp file, to a second .asp file.

GetLastError

public static ASPError GetLastError()
                             throws java.lang.Exception
If a custom error has been defined for an ASP application, it may refer to an .asp file. In this case, when an error occurs during the running of an .asp file within the application, the server will automatically transfer to this ASP page via the Server.Transfer method. Returns an ASPError object describing the error condition that occurred. This method is available only before the .asp file has sent any content to the client.