openlsd.web.appli.LSDWebGet Class Reference
List of all members.
Detailed Description
Get functions for LSD in Web
- Author:
- Frederic Bregier LGPL
|
Static Public Member Functions |
static int | getDocument (ArrayList< String > erreurs, LSDDbAdmin admin, long legacy, LSDBusiness lsdb, LSDDbIpPort ipport, HttpServletResponse response) |
static int | getPoolDocument (ArrayList< String > erreurs, LSDDbAdmin admin, long legacy, LSDBusiness lsdb, LSDDbIpPort ipport, HttpServletResponse response) |
static int | getDocumentException (ArrayList< String > erreurs, LSDDbAdmin admin, long legacy, LSDBusiness lsdb, LSDDbIpPort ipport, HttpServletResponse response) throws LSDNoConnexionException, LSDServletOutputStreamException, LSDBadRequestException, LSDInternalException, LSDNotFoundException, LSDUnknownException |
static int | getPoolDocumentException (ArrayList< String > erreurs, LSDDbAdmin admin, long legacy, LSDBusiness lsdb, LSDDbIpPort ipport, HttpServletResponse response) throws LSDNoConnexionException, LSDServletOutputStreamException, LSDBadRequestException, LSDInternalException, LSDNotFoundException, LSDUnknownException |
static void | closeAll () |
Static Public Attributes |
static final LSDWebClientGetPool | pool = new LSDWebClientGetPool() |
Static Private Member Functions |
static int | getDocumentInternal (ArrayList< String > erreurs, LSDDbAdmin admin, long legacy, LSDBusiness lsdb, HttpServletResponse response, LSDWebClientGet lcg) |
Member Function Documentation
static int openlsd.web.appli.LSDWebGet.getDocument |
( |
ArrayList< String > |
erreurs, |
|
|
LSDDbAdmin |
admin, |
|
|
long |
legacy, |
|
|
LSDBusiness |
lsdb, |
|
|
LSDDbIpPort |
ipport, |
|
|
HttpServletResponse |
response | |
|
) |
| | [static] |
Get the document and returns it to the response
- Parameters:
-
| erreurs | is an arrayList of Strings that will contains litteral of errors if any |
| admin | |
| legacy | |
| lsdb | |
| ipport | |
| response | |
- Returns:
- 0 if OK, else > 0 means an error occurs (1:no connection to OpenLSD Server, 4-9:no document in OpenLSD Server is returned and ServletOutputStream is not closed (client must close it by getting it again through response.getOutputStream() and then response.close()) 4: bad write to HttpServletResponse so no message could be returned to the user, 5: bad request (data given as argument are erroneous), 6: no connection (same as 1), 7: system internal error, 8: no file found (at least not in this Legacy server), 9: unknown error (as 7))
static int openlsd.web.appli.LSDWebGet.getPoolDocument |
( |
ArrayList< String > |
erreurs, |
|
|
LSDDbAdmin |
admin, |
|
|
long |
legacy, |
|
|
LSDBusiness |
lsdb, |
|
|
LSDDbIpPort |
ipport, |
|
|
HttpServletResponse |
response | |
|
) |
| | [static] |
Get the document and returns it to the response using Pool
- Parameters:
-
| erreurs | is an arrayList of Strings that will contains litteral of errors if any |
| admin | |
| legacy | |
| lsdb | |
| ipport | |
| response | |
- Returns:
- 0 if OK, else > 0 means an error occurs (1:no connection to OpenLSD Server, 4-9:no document in OpenLSD Server is returned and ServletOutputStream is not closed (client must close it by getting it again through response.getOutputStream() and then response.close()) 4: bad write to HttpServletResponse so no message could be returned to the user, 5: bad request (data given as argument are erroneous), 6: no connection (same as 1), 7: system internal error, 8: no file found (at least not in this Legacy server), 9: unknown error (as 7))
static int openlsd.web.appli.LSDWebGet.getDocumentException |
( |
ArrayList< String > |
erreurs, |
|
|
LSDDbAdmin |
admin, |
|
|
long |
legacy, |
|
|
LSDBusiness |
lsdb, |
|
|
LSDDbIpPort |
ipport, |
|
|
HttpServletResponse |
response | |
|
) |
| | throws LSDNoConnexionException, LSDServletOutputStreamException, LSDBadRequestException, LSDInternalException, LSDNotFoundException, LSDUnknownException [static] |
Get the document and returns it to the response
- Parameters:
-
| erreurs | is an arrayList of Strings that will contains litteral of errors if any |
| admin | |
| legacy | |
| lsdb | |
| ipport | |
| response | |
- Returns:
- 0 if OK, else Throws one of the error Exception
- Exceptions:
-
| LSDNoConnexionException | No connection to OpenIDM Server |
| LSDServletOutputStreamException | Bad write to HttpServletResponse |
| LSDBadRequestException | Bad request as data given as argument are erroneous |
| LSDInternalException | Internal IDM error |
| LSDNotFoundException | File not found |
| LSDUnknownException | Unknown error |
static int openlsd.web.appli.LSDWebGet.getPoolDocumentException |
( |
ArrayList< String > |
erreurs, |
|
|
LSDDbAdmin |
admin, |
|
|
long |
legacy, |
|
|
LSDBusiness |
lsdb, |
|
|
LSDDbIpPort |
ipport, |
|
|
HttpServletResponse |
response | |
|
) |
| | throws LSDNoConnexionException, LSDServletOutputStreamException, LSDBadRequestException, LSDInternalException, LSDNotFoundException, LSDUnknownException [static] |
Get the document and returns it to the response using Pool
- Parameters:
-
| erreurs | is an arrayList of Strings that will contains litteral of errors if any |
| admin | |
| legacy | |
| lsdb | |
| ipport | |
| response | |
- Returns:
- 0 if OK, else Throws one of the error Exception
- Exceptions:
-
| LSDNoConnexionException | No connection to OpenIDM Server |
| LSDServletOutputStreamException | Bad write to HttpServletResponse |
| LSDBadRequestException | Bad request as data given as argument are erroneous |
| LSDInternalException | Internal IDM error |
| LSDNotFoundException | File not found |
| LSDUnknownException | Unknown error |
static void openlsd.web.appli.LSDWebGet.closeAll |
( |
|
) |
[static] |
Close all connection in Pools
static int openlsd.web.appli.LSDWebGet.getDocumentInternal |
( |
ArrayList< String > |
erreurs, |
|
|
LSDDbAdmin |
admin, |
|
|
long |
legacy, |
|
|
LSDBusiness |
lsdb, |
|
|
HttpServletResponse |
response, |
|
|
LSDWebClientGet |
lcg | |
|
) |
| | [static, private] |
Get the document: internal function
- Parameters:
-
| erreurs | |
| admin | |
| legacy | |
| lsdb | |
| response | |
| lcg | |
- Returns:
- 0 if OK, else > 0 means an error occurs (1:no connection to OpenLSD Server, 2:document is not found in database, 3:cannot get ServletOutputStream, else return value from getNoAckDataToObject()
Member Data Documentation
The documentation for this class was generated from the following file:
- OpenLSD/WebSupport/openlsd/web/appli/LSDWebGet.java