-
Notifications
You must be signed in to change notification settings - Fork 3
/
variable.lisp
72 lines (61 loc) · 2.08 KB
/
variable.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
;;;; $Id: variable.lisp,v 1.6 2008-07-09 21:02:40 ehuelsmann Exp $
;;;; $Source: /project/cl-xmpp/cvsroot/cl-xmpp/variable.lisp,v $
;;;; See the LICENSE file for licensing information.
(in-package :xmpp)
(defvar *debug-stream* *debug-io*
"A character stream, or nil")
(defvar *default-port* 5222)
(defvar *default-hostname* "localhost")
(defvar *legacy-errors*
'((:undefined-condition :any 500)
(:forbidden :auth 403)
(:bad-auth :auth 401)
(:not-authorized :auth 401)
(:payment-required :auth 402)
(:registration-required :auth 407)
(:subscription-required :auth 407)
(:redirect :modify 302)
(:bad-request :modify 400)
(:jid-malformed :modify 400)
(:not-acceptable :modify 406)
(:gone :modify 302)
(:conflict :cancel 409)
(:feature-not-implemented :cancel 501)
(:item-not-found :cancel 404)
(:not-allowed :cancel 405)
(:remote-server-not-found :cancel 404)
(:service-unavailable :cancel 503)
(:internal-server-error :wait 500)
(:recipient-unavailable :wait 404)
(:remote-server-timeout :wait 504)
(:resource-constraint :wait 500)
(:unexpected-request :wait 400)))
(defvar *errors*
'((:bad-format)
(:bad-namespace-prefix)
(:conflict)
(:connection-timeout)
(:host-gone)
(:host-unknown)
(:improper-addressing)
(:internal-server-error)
(:invalid-from)
(:invalid-id)
(:invalid-namespace)
(:invalid-xml)
(:not-authorized)
(:policy-violation)
(:remote-connection-failed)
(:resource-constraint)
(:restricted-xml)
(:see-other-host)
(:system-shutdown)
(:undefined-condition)
(:unsupported-encoding)
(:unsupported-stanza-type)
(:unsupported-version)
(:xml-not-well-formed)))
(defvar *auth-methods* nil
"Alist of method name to operator.
Operators must accept the following operands:
connection username password resource")