/[classpath]/inetlib/source/gnu/inet/gopher/DirectoryEntry.java
ViewVC logotype

Diff of /inetlib/source/gnu/inet/gopher/DirectoryEntry.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by dog, Thu Oct 21 15:21:54 2004 UTC revision 1.5 by dog, Thu Nov 25 22:15:05 2004 UTC
# Line 1  Line 1 
1  /*  /*
2   * $Id$   * DirectoryEntry.java
3   * Copyright (C) 2003 The Free Software Foundation   * Copyright (C) 2003 The Free Software Foundation
4   *   *
5   * This file is part of GNU inetlib, a library.   * This file is part of GNU inetlib, a library.
# Line 47  import java.util.NoSuchElementException; Line 47  import java.util.NoSuchElementException;
47   * A gopher directory entry.   * A gopher directory entry.
48   *   *
49   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>   * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
  * @version $Revision$ $Date$  
50   */   */
51  public final class DirectoryEntry  public final class DirectoryEntry
52  {  {
# Line 128  public final class DirectoryEntry Line 127  public final class DirectoryEntry
127    final String hostname;    final String hostname;
128    final int port;    final int port;
129    
130    DirectoryEntry (int type, String title, String selector, String hostname,    DirectoryEntry(int type, String title, String selector, String hostname,
131                    int port)                   int port)
132      {    {
133        this.type = type;      this.type = type;
134        this.title = title;      this.title = title;
135        this.selector = selector;      this.selector = selector;
136        this.hostname = hostname;      this.hostname = hostname;
137        this.port = port;      this.port = port;
138      }    }
139    
140    /**    /**
141     * Returns the type of this entry.     * Returns the type of this entry.
142     */     */
143    public int getType ()    public int getType()
144      {    {
145        return type;      return type;
146      }    }
147      
148    /**    /**
149     * Returns the title for this entry.     * Returns the title for this entry.
150     */     */
151    public String getTitle ()    public String getTitle()
152      {    {
153        return title;      return title;
154      }    }
155      
156    /**    /**
157     * Returns the selector for this entry.     * Returns the selector for this entry.
158     * This is used to retrieve the content for the entry.     * This is used to retrieve the content for the entry.
159     */     */
160    public String getSelector ()    public String getSelector()
161      {    {
162        return selector;      return selector;
163      }    }
164      
165    /**    /**
166     * Returns the hostname for the content of this entry.     * Returns the hostname for the content of this entry.
167     */     */
168    public String getHostname ()    public String getHostname()
169      {    {
170        return hostname;      return hostname;
171      }    }
172      
173    /**    /**
174     * Returns the port on which the content for this entry can be retrieved.     * Returns the port on which the content for this entry can be retrieved.
175     */     */
176    public int getPort ()    public int getPort()
177      {    {
178        return port;      return port;
179      }    }
180      
181  }  }
182    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26