All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.honeybadger.reporter.dto.Context Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package io.honeybadger.reporter.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.LinkedHashMap;

/**
 * The context of an HTTP request.
 * @author Elijah Zupancic
 * @since 1.0.9
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Context extends LinkedHashMap
        implements Serializable {
    private static final long serialVersionUID = -5418699300879809188L;

    public Context() {
    }

    public Context setUsername(final String username) {
        put("user_name", username);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy