Class Index | File Index

Classes


Class URLContent


Defined in: URLContent.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
URLContent(url)
Content wrapper for strings used as URLs.
Method Summary
Method Attributes Method Name and Description
 
equals(obj)
Returns true if the object in parameter is an URL content that references the same URL as this object.
 
Returns the name of a JAR entry.
 
Returns the URL base of a JAR entry.
 
Returns the URL of this content.
 
Returns true if the URL stored by this content references an entry in a JAR.
Class Detail
URLContent(url)
Content wrapper for strings used as URLs.
Author: Emmanuel Puybaret.
Parameters:
{string} url
the URL from which this content will be read
Method Detail
{boolean} equals(obj)
Returns true if the object in parameter is an URL content that references the same URL as this object.
Parameters:
obj
Returns:
{boolean}

{string} getJAREntryName()
Returns the name of a JAR entry. If the JAR entry in the URL given at creation time was encoded in application/x-www-form-urlencoded format, this method will return it unchanged and not decoded.
Throws:
IllegalStateException if the URL of this content doesn't reference an entry in a JAR URL.
Returns:
{string}

{string} getJAREntryURL()
Returns the URL base of a JAR entry.
Returns:
{string}

{string} getURL()
Returns the URL of this content.
Returns:
{string}

{boolean} isJAREntry()
Returns true if the URL stored by this content references an entry in a JAR.
Returns:
{boolean}

© Copyrights 2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Oct 25 2017 16:36:09 GMT+0200 (CEST)