com.drunkendev.web.userlog.UserlogEntry Maven / Gradle / Ivy
/*
* UserlogEntry.java Oct 9 2013, 16:07
*
* Copyright 2013 Drunken Dev.
*
* 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 com.drunkendev.web.userlog;
import java.time.LocalDateTime;
/**
* Entry within the user log.
*
* @author Brett Ryan
* @since 1.0
*/
public class UserlogEntry {
private long id;
private LocalDateTime requestDate;
private String username;
private String method;
private String url;
private String query;
private String contentType;
private String userAgent;
private String remoteAddress;
/**
* Creates a new {@code UserlogEntry} instance.
*/
public UserlogEntry() {
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public LocalDateTime getRequestDate() {
return requestDate;
}
public void setRequestDate(LocalDateTime requestDate) {
this.requestDate = requestDate;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public String getUserAgent() {
return userAgent;
}
public void setUserAgent(String userAgent) {
this.userAgent = userAgent;
}
public String getRemoteAddress() {
return remoteAddress;
}
public void setRemoteAddress(String remoteAddress) {
this.remoteAddress = remoteAddress;
}
}