goja.rapid.mvc.interceptor.syslog.SysLog Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2011-2013, kidzhou 周磊 ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package goja.rapid.mvc.interceptor.syslog;
import com.google.common.base.MoreObjects;
import java.sql.Timestamp;
/**
*
*/
public final class SysLog {
private String user;
private Timestamp createTime = new Timestamp(System.currentTimeMillis());
private String ip;
private String message;
private String title;
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public Timestamp getCreateTime() {
return createTime;
}
public void setCreateTime(Timestamp createTime) {
this.createTime = createTime;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("user", user)
.add("createTime", createTime)
.add("ip", ip)
.add("message", message)
.add("title", title)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy