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

com.app55.message.UserUpdateRequest Maven / Gradle / Ivy

The newest version!
package com.app55.message;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.app55.domain.User;

public final class UserUpdateRequest extends Request
{
	private User	user;

	public UserUpdateRequest()
	{
		super(UserUpdateResponse.class);
	}

	public UserUpdateRequest(User user)
	{
		this();
		this.user = user;
	}

	@Override
	@JsonIgnore
	public String getHttpEndpoint()
	{
		return getGateway().getEnvironment().getBaseUrl() + "/user/" + user.getId();
	}

	@Override
	@JsonIgnore
	public String getHttpMethod()
	{
		return "POST";
	}

	public User getUser()
	{
		return user;
	}

	public void setUser(User user)
	{
		this.user = user;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy