FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
amadeus-java/src/main/java/com/amadeus/Constants.java at master · tambert/amadeus-java · GitHub
tambert
/
amadeus-java
Public
forked from
amadeus4dev/amadeus-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
amadeus-java
/
src
/
main
/
java
/
com
/
amadeus
/
Constants.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (40 loc) · 1.48 KB
Breadcrumbs
amadeus-java
/
src
/
main
/
java
/
com
/
amadeus
/
Constants.java
Copy path
File metadata and controls
47 lines (40 loc) · 1.48 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
package
com
.
amadeus
;
/**
* A class for constant variables.
*
* <pre>
* To use: Constants.VARIABLE
* </pre>
*/
public
final
class
Constants
{
// HTTP verbs
public
static
final
String
GET
=
"GET"
;
public
static
final
String
POST
=
"POST"
;
public
static
final
String
HTTPS
=
"https"
;
public
static
final
String
HTTP
=
"http"
;
public
static
final
String
USER_AGENT
=
"User-Agent"
;
public
static
final
String
ACCEPT
=
"Accept"
;
public
static
final
String
AUTHORIZATION
=
"Authorization"
;
public
static
final
String
CONTENT_TYPE
=
"Content-Type"
;
// Pagination
public
static
final
String
FIRST
=
"first"
;
public
static
final
String
LAST
=
"last"
;
public
static
final
String
NEXT
=
"next"
;
public
static
final
String
PREVIOUS
=
"previous"
;
// Authorization
public
static
final
String
GRANT_TYPE
=
"grant_type"
;
public
static
final
String
CLIENT_CREDENTIALS
=
"client_credentials"
;
public
static
final
String
CLIENT_ID
=
"client_id"
;
public
static
final
String
CLIENT_SECRET
=
"client_secret"
;
public
static
final
String
AUTH_URL
=
"/v1/security/oauth2/token"
;
public
static
final
String
ACCESS_TOKEN
=
"access_token"
;
public
static
final
String
EXPIRES_IN
=
"expires_in"
;
/**
* The caller references the constants using <tt>Consts.EMPTY_STRING</tt>,
* and so on. Thus, the caller should be prevented from constructing objects of
* this class, by declaring this private constructor.
*/
private
Constants
() {
throw
new
AssertionError
();
}
}
Back
|
FazBrowse Home
|
New Git URL