/[classpath]/classpath/java/net/URLConnection.java
ViewVC logotype

Diff of /classpath/java/net/URLConnection.java

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

revision 1.29.2.3 by gnu_andrew, Tue Aug 2 20:12:23 2005 UTC revision 1.29.2.4 by gnu_andrew, Sun Oct 16 17:12:07 2005 UTC
# Line 47  import java.text.ParsePosition; Line 47  import java.text.ParsePosition;
47  import java.text.SimpleDateFormat;  import java.text.SimpleDateFormat;
48  import java.util.Collections;  import java.util.Collections;
49  import java.util.Date;  import java.util.Date;
50    import java.util.List;
51  import java.util.Locale;  import java.util.Locale;
52  import java.util.Map;  import java.util.Map;
53    
# Line 311  public abstract class URLConnection Line 312  public abstract class URLConnection
312     *     *
313     * @since 1.4     * @since 1.4
314     */     */
315    public Map getHeaderFields()    public Map<String,List<String>> getHeaderFields()
316    {    {
317      // Subclasses for specific protocols override this.      // Subclasses for specific protocols override this.
318      return Collections.EMPTY_MAP;      return Collections.emptyMap();
319    }    }
320    
321    /**    /**
# Line 802  public abstract class URLConnection Line 803  public abstract class URLConnection
803     *     *
804     * @since 1.4     * @since 1.4
805     */     */
806    public Map getRequestProperties()    public Map<String,List<String>> getRequestProperties()
807    {    {
808      if (connected)      if (connected)
809        throw new IllegalStateException("Already connected");        throw new IllegalStateException("Already connected");
810    
811      // Overridden by subclasses that support reading header fields from the      // Overridden by subclasses that support reading header fields from the
812      // request.      // request.
813      return Collections.EMPTY_MAP;      return Collections.emptyMap();
814    }    }
815    
816    /**    /**

Legend:
Removed from v.1.29.2.3  
changed lines
  Added in v.1.29.2.4

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