parent
49ea4e9f39
commit
1271f9d71a
|
@ -52,6 +52,7 @@ type Jolokia struct {
|
||||||
|
|
||||||
const sampleConfig = `
|
const sampleConfig = `
|
||||||
## This is the context root used to compose the jolokia url
|
## This is the context root used to compose the jolokia url
|
||||||
|
## NOTE that your jolokia security policy must allow for POST requests.
|
||||||
context = "/jolokia"
|
context = "/jolokia"
|
||||||
|
|
||||||
## This specifies the mode used
|
## This specifies the mode used
|
||||||
|
@ -104,7 +105,6 @@ func (j *Jolokia) Description() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (j *Jolokia) doRequest(req *http.Request) (map[string]interface{}, error) {
|
func (j *Jolokia) doRequest(req *http.Request) (map[string]interface{}, error) {
|
||||||
|
|
||||||
resp, err := j.jClient.MakeRequest(req)
|
resp, err := j.jClient.MakeRequest(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue