forked from jenkinsci/java-client-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseModel.java
More file actions
50 lines (40 loc) · 961 Bytes
/
BaseModel.java
File metadata and controls
50 lines (40 loc) · 961 Bytes
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
/*
* Copyright (c) 2013 Cosmin Stejerean, Karl Heinz Marbaise, and contributors.
*
* Distributed under the MIT license: http://opensource.org/licenses/MIT
*/
package com.offbytwo.jenkins.model;
import com.offbytwo.jenkins.client.JenkinsHttpConnection;
/**
* The base model.
*/
public class BaseModel {
/**
* The class.
*/
private String _class;
/**
* Get the class.
* @return class
*/
public String get_class() {
return _class;
}
//TODO: We should make this private
protected JenkinsHttpConnection client;
/**
* Get the HTTP client.
* @return client
*/
public JenkinsHttpConnection getClient() {
return client;
}
/**
* Set the HTTP client.
* @param client {@link JenkinsHttpConnection}.
*/
public BaseModel setClient(final JenkinsHttpConnection client) {
this.client = client;
return this;
}
}