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

io.github.factoryfx.microservice.common.UserAwareRequest Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package io.github.factoryfx.microservice.common;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;


public class UserAwareRequest {

    public final String user;
    public final String passwordHash;
    @JsonTypeInfo(use=JsonTypeInfo.Id.CLASS, include=JsonTypeInfo.As.PROPERTY, property="@class")
    public final T request;

    @JsonCreator
    public UserAwareRequest(@JsonProperty("user")String user, @JsonProperty("passwordHash")String passwordHash, @JsonProperty("request")T request) {
        this.user = user;
        this.passwordHash = passwordHash;
        this.request = request;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy