libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
D4AsyncUtil.h
Go to the documentation of this file.
1/*
2 * D4AsyncUtil.h
3 *
4 * Created on: Feb 18, 2014
5 * Author: ndp
6 */
7
8#ifndef D4ASYNCUTIL_H_
9#define D4ASYNCUTIL_H_
10
11#include "XMLWriter.h"
12
13namespace libdap {
14
16
18private:
19#if 0
20 // Not used
21 string *d_stylesheet_ref;
22#endif
23
24public:
26 virtual ~D4AsyncUtil();
27
28 const static string STYLESHEET_REFERENCE_KEY;
29
35 void writeD4AsyncRequired(XMLWriter &xml, long expectedDelay, long responseLifetime, string *stylesheet_ref = 0);
36
42 void writeD4AsyncAccepted(XMLWriter &xml, long expectedDelay, long responseLifetime, string asyncResourceUrl,
43 string *stylesheet_ref = 0);
44
50 void writeD4AsyncPending(XMLWriter &xml, string *stylesheet_ref = 0);
51
57 void writeD4AsyncResponseGone(XMLWriter &xml, string *stylesheet_ref = 0);
58
64 void writeD4AsyncResponseRejected(XMLWriter &xml, RejectReasonCode code, string description,
65 string *stylesheet_ref = 0);
67
73 void writeD2AsyncRequired(XMLWriter &xml, long expectedDelay, long responseLifetime);
74 void writeD2AsyncAccepted(XMLWriter &xml, long expectedDelay, long responseLifetime, string asyncResourceUrl);
77 void writeD2AsyncResponseRejected(XMLWriter &xml, RejectReasonCode code, string description);
78};
79
80} /* namespace libdap */
81#endif /* D4ASYNCUTIL_H_ */
string getRejectReasonCodeString(RejectReasonCode code)
void writeD2AsyncPending(XMLWriter &xml)
void writeD4AsyncResponseRejected(XMLWriter &xml, RejectReasonCode code, string description, string *stylesheet_ref=0)
Write the DAP4 ResponseRejected response. Write the DAP4 AsyncRequired in XML form.
static const string STYLESHEET_REFERENCE_KEY
Definition D4AsyncUtil.h:28
void writeD2AsyncResponseRejected(XMLWriter &xml, RejectReasonCode code, string description)
void writeD2AsyncAccepted(XMLWriter &xml, long expectedDelay, long responseLifetime, string asyncResourceUrl)
void writeD4AsyncPending(XMLWriter &xml, string *stylesheet_ref=0)
Write the DAP4 AsyncPending response. Write the DAP4 AsyncPending in XML form.
void writeD4AsyncRequired(XMLWriter &xml, long expectedDelay, long responseLifetime, string *stylesheet_ref=0)
Write the DAP4 AsyncRequired response. Print the AsyncRequired in XML form.
void writeD2AsyncResponseGone(XMLWriter &xml)
void writeD2AsyncRequired(XMLWriter &xml, long expectedDelay, long responseLifetime)
Write the DAP2 AsyncRequired response . Write the DAP2 AsyncRequired in XML form.
void writeD4AsyncAccepted(XMLWriter &xml, long expectedDelay, long responseLifetime, string asyncResourceUrl, string *stylesheet_ref=0)
Write the DAP4 AsyncAccepted response. Write the AsyncAccepted in XML form.
void writeD4AsyncResponseGone(XMLWriter &xml, string *stylesheet_ref=0)
Write the DAP4 AsyncResponseGone response. Write the DAP4 AsyncRequired in XML form.
top level DAP object to house generic methods
Definition AISConnect.cc:30
RejectReasonCode
Definition D4AsyncUtil.h:15
@ UNAVAILABLE
Definition D4AsyncUtil.h:15
@ PRIVILEGES
Definition D4AsyncUtil.h:15