~ubuntu-branches/ubuntu/jaunty/openjdk-6/jaunty-security

« back to all changes in this revision

Viewing changes to rt/net/sourceforge/jnlp/cache/Resource.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose, Edward Nevill, Matthias Klose
  • Date: 2009-03-02 16:18:01 UTC
  • Revision ID: james.westby@ubuntu.com-20090302161801-rubk3yhm8j0au4y1
Tags: 6b14-0ubuntu17
[ Edward Nevill ]
* Remove VFP from asm loop
* Disble the mauve testsuite for armel.

[Matthias Klose]
* Update IcedTea (20090302).

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
    /** the remote location of the resource */
69
69
    URL location;
 
70
    
 
71
    /** cookie string to send with the resource request */
 
72
    String cookieStr;
70
73
 
71
74
    /** the local file downloaded to */
72
75
    File localFile;
95
98
    /**
96
99
     * Create a resource.
97
100
     */
98
 
    private Resource(URL location, UpdatePolicy updatePolicy, Version requestVersion) {
 
101
    private Resource(URL location, String cookieStr, UpdatePolicy updatePolicy, Version requestVersion) {
99
102
        this.location = location;
100
103
        this.requestVersion = requestVersion;
101
104
        this.updatePolicy = updatePolicy;
 
105
        this.cookieStr = cookieStr;
102
106
    }
103
107
 
104
108
    /**
105
109
     * Return a shared Resource object representing the given
106
110
     * location and version.
107
111
     */
108
 
    public static Resource getResource(URL location, UpdatePolicy updatePolicy, Version requestVersion) {
 
112
    public static Resource getResource(URL location, String cookieStr, UpdatePolicy updatePolicy, Version requestVersion) {
109
113
        synchronized (resources) {
110
 
            Resource resource = new Resource(location, updatePolicy, requestVersion);
 
114
            Resource resource = new Resource(location, cookieStr, updatePolicy, requestVersion);
111
115
 
112
116
            int index = resources.indexOf(resource);
113
117
            if (index >= 0) { // return existing object
129
133
    public URL getLocation() {
130
134
        return location;
131
135
    }
 
136
    
 
137
    /**
 
138
     * Returns the cookie string associated with this resource
 
139
     */
 
140
    public String getCookieStr() {
 
141
        return cookieStr;
 
142
    }
132
143
 
133
144
    /**
134
145
     * Returns the tracker that first created or monitored the