com.appland.appmap.output.v1.HttpClientRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appmap-agent Show documentation
Show all versions of appmap-agent Show documentation
Inspect and record the execution of Java for use with App Land
package com.appland.appmap.output.v1;
import com.alibaba.fastjson.annotation.JSONField;
/**
* Represents a snapshot of an HTTP client request handled at runtime. Embedded within an
* {@link Event}.
* @see Event
* @see GitHub: AppMap - HTTP client request attributes
*/
public class HttpClientRequest {
@JSONField(name = "request_method")
public String method;
@JSONField(name = "url")
public String url;
/**
* Set the method of this request.
* @param method The request method
* @return {@code this}
* @see GitHub: AppMap - HTTP client request attributes
*/
public HttpClientRequest setMethod(String method) {
this.method = method;
return this;
}
/**
* Set the URL of this request.
*
* @param url The URL requested
* @return {@code this}
* @see GitHub:
* AppMap - HTTP client request attributes
*/
public HttpClientRequest setURL(String url) {
this.url = url;
return this;
}
}