home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (PetSite.java)

This example Spring Framework source code file (PetSite.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

io, net, network, petsite, petsite, serializable, serializable, string, string, url, url

The Spring Framework PetSite.java source code

package org.springframework.samples.petportal.domain;

import java.io.Serializable;
import java.net.URL;

 * A PetSite stores the url of a website that is external to
 * the portlet as well as a user-supplied name for the site.
 * This is used to demonstrate a redirect from a portlet.
 * The websites to be included upon portlet startup are in a file
 * called "petsites.properties" within the WEB-INF directory.
 * See the bean definitions in "petsites-portlet.xml" for more detail.
 * @author Mark Fisher
public class PetSite implements Serializable {

	private String name;

	private URL url;

	public String getName() {
		return name;

	public void setName(String name) {
		this.name = name;

	public URL getUrl() {
		return url;
	public void setUrl(URL url) {
		this.url = url;

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework PetSite.java source code file:

my book on functional programming


new blog posts


Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.