com.liferay.portal.kernel.struts.LastPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.struts;
import com.liferay.portal.kernel.util.StringBundler;
import java.io.Serializable;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author Brian Wing Shun Chan
*/
public class LastPath implements Serializable {
public LastPath(String contextPath, String path) {
this(contextPath, path, Collections.emptyMap());
}
public LastPath(
String contextPath, String path, Map parameterMap) {
_contextPath = contextPath;
_path = path;
_parameterMap = new LinkedHashMap(parameterMap);
}
public String getContextPath() {
return _contextPath;
}
public Map getParameterMap() {
return _parameterMap;
}
public String getPath() {
return _path;
}
public void setContextPath(String contextPath) {
_contextPath = contextPath;
}
public void setParameterMap(Map parameterMap) {
_parameterMap = parameterMap;
}
public void setPath(String path) {
_path = path;
}
@Override
public String toString() {
StringBundler sb = new StringBundler(5);
sb.append("{contextPath=");
sb.append(_contextPath);
sb.append(", path=");
sb.append(_path);
sb.append("}");
return sb.toString();
}
private String _contextPath;
private Map _parameterMap;
private String _path;
}