1999-11-08 00:55:12 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-11-08 00:55:12 +03:00
|
|
|
|
2003-11-17 00:43:43 +03:00
|
|
|
#include "nsIURL.idl"
|
2002-03-06 10:48:55 +03:00
|
|
|
|
1999-11-08 00:55:12 +03:00
|
|
|
/**
|
|
|
|
* JAR URLs have the following syntax
|
|
|
|
*
|
|
|
|
* jar:<jar-file-uri>!/<jar-entry>
|
|
|
|
*
|
|
|
|
* EXAMPLE: jar:http://www.big.com/blue.jar!/ocean.html
|
2003-11-17 00:43:43 +03:00
|
|
|
*
|
|
|
|
* The nsIURL methods operate on the <jar-entry> part of the spec.
|
1999-11-08 00:55:12 +03:00
|
|
|
*/
|
2015-08-17 22:34:17 +03:00
|
|
|
[scriptable, uuid(646a508c-f786-4e14-be6d-8dda2a633c60)]
|
2003-11-17 00:43:43 +03:00
|
|
|
interface nsIJARURI : nsIURL {
|
1999-11-08 00:55:12 +03:00
|
|
|
|
|
|
|
/**
|
2005-11-23 23:35:37 +03:00
|
|
|
* Returns the root URI (the one for the actual JAR file) for this JAR
|
|
|
|
* (e.g., http://www.big.com/blue.jar).
|
1999-11-08 00:55:12 +03:00
|
|
|
*/
|
2006-05-02 22:54:19 +04:00
|
|
|
readonly attribute nsIURI JARFile;
|
1999-11-08 00:55:12 +03:00
|
|
|
|
|
|
|
/**
|
2005-11-23 23:35:37 +03:00
|
|
|
* Returns the entry specified for this JAR URI (e.g., "ocean.html"). This
|
|
|
|
* value may contain %-escaped byte sequences.
|
1999-11-08 00:55:12 +03:00
|
|
|
*/
|
2002-03-06 10:48:55 +03:00
|
|
|
attribute AUTF8String JAREntry;
|
2007-11-27 07:35:00 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a clone of the JAR URI with a new root URI (the URI for the
|
|
|
|
* actual JAR file).
|
|
|
|
*/
|
|
|
|
nsIJARURI cloneWithJARFile(in nsIURI jarFile);
|
1999-11-08 00:55:12 +03:00
|
|
|
};
|