public abstract class BaseHttp extends AbstractMonitorEnabled implements DBase
DBase.| Modifier and Type | Field and Description |
|---|---|
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().
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseHttp(NotesHttpFactory theFactory,
DBase theParent,
DNotesMonitor monitor)
Creates a new DBaseImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
execute(String query)
Deprecated.
everything should be rewritten without the domingo database
|
protected String |
execute(String pathInfo,
String query)
Executes a HTTP get request and returns the response body.
|
protected String |
executeDomingoDatabaseUrl(String infoname)
Deprecated.
everything should be rewritten without the domingo database
|
protected String |
executeUrl(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 Calendar |
parseViewEntryDateTime(String date)
Parses a date in the format as used in view entries.
|
protected byte[] |
postDXL(String query,
DocumentHttp document)
Deprecated.
everything should be rewritten without the domingo database
|
abstract String |
toString()
Returns a short description of an instance.
|
static String |
toStringIntern(Object object)
Returns a string representation of the object.
|
getMonitor, setMonitorprotected static final int DATETIME_STRING_LENGTH
protected static final int NUM_DATETIME_VALUES
protected static final int MAX_DATETIME_LENGTH
protected BaseHttp(NotesHttpFactory theFactory, DBase theParent, DNotesMonitor monitor)
theFactory - the controlling factorytheParent - the parent objectmonitor - the monitorprotected final BaseHttp getParent()
null if no parent availableprotected final SessionHttp getDSession()
protected final NotesHttpFactory getFactory()
protected final String execute(String pathInfo, String query) throws IOException
pathInfo - path of database and optional e.g. a view namequery - the query stringIOException - if the request cannot be executedprotected final String execute(String query) throws IOException
query - the query stringIOException - if the request cannot be executedprotected final String executeDomingoDatabaseUrl(String infoname) throws IOException
infoname - name of the information resourceIOException - if the request cannot be executedprotected final String executeUrl(String pathInfo) throws IOException
pathInfo - the path_info to executeIOException - if the URL cannot be executed
TODO move this to the sessionprotected final byte[] postDXL(String query, DocumentHttp document) throws IOException
query - the query stringdocument - the documentIOException - if the request cannot be executedpublic abstract String toString()
toString in interface DBasetoString in class ObjectObject.toString()public static String toStringIntern(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()Copyright © 2005–2020. All rights reserved.