|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.monitor.AbstractMonitorEnabled de.bea.domingo.http.BaseHttp
public abstract class BaseHttp
Abstract base class for all implementations of interfaces derived from
DBase
.
Nested Class Summary | |
---|---|
(package private) class |
BaseHttp.BaseHandler
Base SAX parser for DXL. |
Field Summary | |
---|---|
protected static int |
DATETIME_STRING_LENGTH
Number of characters needed to represent a date/time value. |
protected static int |
MAX_DATETIME_LENGTH
maximum number of characters to parse in method getItemValues(). |
protected static int |
NUM_DATETIME_VALUES
Maximum number of items supported in method getItemValues(). |
Constructor Summary | |
---|---|
protected |
BaseHttp(NotesHttpFactory theFactory,
DBase theParent,
DNotesMonitor monitor)
Creates a new DBaseImpl object. |
Method Summary | |
---|---|
protected java.lang.String |
execute(java.lang.String query)
Deprecated. everything should be rewritten without the domingo database |
protected java.lang.String |
execute(java.lang.String pathInfo,
java.lang.String query)
Executes a HTTP get request and returns the response body. |
protected java.lang.String |
executeDomingoDatabaseUrl(java.lang.String infoname)
Deprecated. everything should be rewritten without the domingo database |
protected java.lang.String |
executeUrl(java.lang.String pathInfo)
Executes a given URL and returns the answer from the server. |
protected SessionHttp |
getDSession()
Returns the Domingo session that created the current object. |
protected NotesHttpFactory |
getFactory()
Returns the factory corresponding to this instance. |
protected BaseHttp |
getParent()
Returns the parent object. |
static java.util.Calendar |
parseViewEntryDateTime(java.lang.String date)
Parses a date in the format as used in view entries. |
protected byte[] |
postDXL(java.lang.String query,
DocumentHttp document)
Deprecated. everything should be rewritten without the domingo database |
abstract java.lang.String |
toString()
Returns a short description of an instance. |
static java.lang.String |
toStringIntern(java.lang.Object object)
Returns a string representation of the object. |
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled |
---|
getMonitor, setMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.bea.domingo.DBase |
---|
equals, hashCode |
Field Detail |
---|
protected static final int DATETIME_STRING_LENGTH
protected static final int NUM_DATETIME_VALUES
protected static final int MAX_DATETIME_LENGTH
Constructor Detail |
---|
protected BaseHttp(NotesHttpFactory theFactory, DBase theParent, DNotesMonitor monitor)
theFactory
- the controlling factorytheParent
- the parent objectmonitor
- the monitorMethod Detail |
---|
protected final BaseHttp getParent()
null
if no parent availableprotected final SessionHttp getDSession()
protected final NotesHttpFactory getFactory()
protected final java.lang.String execute(java.lang.String pathInfo, java.lang.String query) throws java.io.IOException
pathInfo
- path of database and optional e.g. a view namequery
- the query string
java.io.IOException
- if the request cannot be executedprotected final java.lang.String execute(java.lang.String query) throws java.io.IOException
query
- the query string
java.io.IOException
- if the request cannot be executedprotected final java.lang.String executeDomingoDatabaseUrl(java.lang.String infoname) throws java.io.IOException
infoname
- name of the information resource
java.io.IOException
- if the request cannot be executedprotected final java.lang.String executeUrl(java.lang.String pathInfo) throws java.io.IOException
pathInfo
- the path_info to execute
java.io.IOException
- if the URL cannot be executed
TODO move this to the sessionprotected final byte[] postDXL(java.lang.String query, DocumentHttp document) throws java.io.IOException
query
- the query stringdocument
- the document
java.io.IOException
- if the request cannot be executedpublic abstract java.lang.String toString()
toString
in interface DBase
toString
in class java.lang.Object
Object.toString()
public static java.lang.String toStringIntern(java.lang.Object object)
The toStringIntern
method
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
object.getClass().getName() + '@' + Integer.toHexString(object.hashCode())
object
- the reference object to use.
Object.toString()
public static java.util.Calendar parseViewEntryDateTime(java.lang.String date)
Format: yyyyMMddThhmmss,nn+zz
Example: 20070119T155258,93+01
date
- a date/time value from a view entry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |