From 2d073129857a42ab4195cd433c8be152e357033f Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Mon, 21 Mar 2011 20:40:57 +0000 Subject: Documentation refresh; ResourceBundle in ShowUtils; probably some format pokery. --- doc/uk/org/ury/server/Server.html | 221 ++++++++++++++++---------------------- 1 file changed, 90 insertions(+), 131 deletions(-) (limited to 'doc/uk/org/ury/server/Server.html') diff --git a/doc/uk/org/ury/server/Server.html b/doc/uk/org/ury/server/Server.html index abb6497..32baceb 100644 --- a/doc/uk/org/ury/server/Server.html +++ b/doc/uk/org/ury/server/Server.html @@ -2,12 +2,12 @@ - + Server - + @@ -55,8 +55,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -106,13 +106,48 @@ The unified URY server, accepting requests over HTTP.

+
Version:
+
2011.0320
Author:
Matt Windsor

+ + + + + + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringDOCTYPE + +
+           
+static java.lang.StringINDEX_HTML + +
+           
+static java.lang.StringSERVER_VERSION + +
+           
@@ -139,19 +174,11 @@ The unified URY server, accepting requests over HTTP. - void -doConnection(java.net.Socket clientSocket) - -
-            - - -  DatabaseDriver getDatabaseConnection(UserClass userClass)
-          Get a database connection using the given user class. +          Gets a database connection using the given user class. @@ -163,38 +190,12 @@ The unified URY server, accepting requests over HTTP. - org.apache.http.HttpResponse -handleGet(java.util.List<java.lang.String> buffer) - -
-          Handle a HTTP GET request. - - - static void main(java.lang.String[] args)
          The main method, which serves to create a server. - - - java.util.Map<java.lang.String,java.lang.String> -parseQueryString(java.lang.String query) - -
-          Parse a query string, populating a key-value map of the - URL-unescaped results. - - - - void -processBuffer(java.util.List<java.lang.String> buffer, - java.io.PrintWriter out) - -
-            -   @@ -208,6 +209,45 @@ The unified URY server, accepting requests over HTTP.  

+ + + +

+ + + +
+Field Detail
+ +

+SERVER_VERSION

+
+public static final java.lang.String SERVER_VERSION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DOCTYPE

+
+public static final java.lang.String DOCTYPE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+INDEX_HTML

+
+public static final java.lang.String INDEX_HTML
+
+
+
See Also:
Constant Field Values
+
+ @@ -248,85 +288,6 @@ public static void main(java.lang.String[] args)
-

-doConnection

-
-public void doConnection(java.net.Socket clientSocket)
-                  throws java.io.IOException
-
-
- -
Throws: -
java.io.IOException
-
-
-
- -

-processBuffer

-
-public void processBuffer(java.util.List<java.lang.String> buffer,
-                          java.io.PrintWriter out)
-
-
-
-
-
-
- -

-handleGet

-
-public org.apache.http.HttpResponse handleGet(java.util.List<java.lang.String> buffer)
-                                       throws HandlerNotFoundException,
-                                              HandlerSetupFailureException,
-                                              HandleFailureException,
-                                              BadRequestException,
-                                              NotAHandlerException
-
-
Handle a HTTP GET request. -

-

-
Parameters:
buffer - The HTTP request as a list of strings. -
Returns:
The HTTP response. -
Throws: -
HandlerNotFoundException - if the client requested - a request handler that could not be found on the - class path. -
HandlerSetupFailureException - if the handler was - found but could not be set up (eg does not - implement appropriate interface or cannot be - instantiated). -
HandleFailureException - if an appropriate handler - was contacted, but it failed to process the - request. -
BadRequestException - if the request was malformed - or invalid. -
NotAHandlerException - if the class requested to - handle the request is not a handler.
-
-
-
- -

-parseQueryString

-
-public java.util.Map<java.lang.String,java.lang.String> parseQueryString(java.lang.String query)
-                                                                  throws java.io.UnsupportedEncodingException
-
-
Parse a query string, populating a key-value map of the - URL-unescaped results. -

-

-
Parameters:
query - The query string to parse. -
Returns:
A map associating parameter keys and values. -
Throws: -
java.io.UnsupportedEncodingException - if the URL decoder - fails.
-
-
-
-

getDatabaseConnection

@@ -334,17 +295,15 @@ public MissingCredentialsException,
                                             ConnectionFailureException
-
Get a database connection using the given user class. +
Gets a database connection using the given user class.

Parameters:
userClass - The user class to get a connection for. -
Returns:
a database connection, which may or may not - have been created on this call. +
Returns:
a database connection, which may or may not have been created on + this call.
Throws: -
MissingCredentialsException - if the credentials - for the given userclass are missing. -
ConnectionFailureException - if the connection - failed.
+
MissingCredentialsException - if the credentials for the given userclass are missing. +
ConnectionFailureException - if the connection failed.

@@ -390,8 +349,8 @@ public java.lang.String getVersion() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
FRAMES    NO FRAMES   @@ -411,9 +370,9 @@ public java.lang.String getVersion() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD -- cgit v1.2.3