com.ibm.portal.spa.data
Class ZipDataURI

java.lang.Object
  extended by com.ibm.portal.resolver.uri.BaseURI
      extended by com.ibm.portal.spa.data.ZipDataURI
All Implemented Interfaces:
Constants

public class ZipDataURI
extends BaseURI
implements Constants

URI to a file inside a ZIP

Since:
6.1.0

Field Summary
 
Fields inherited from class com.ibm.portal.resolver.uri.BaseURI
LOG_LEVEL, NULL_FACTORY
 
Fields inherited from interface com.ibm.portal.spa.data.Constants
KEY_DEVICE_CLASS, KEY_LOCALE, SCHEME_SPA_URI, SCHEME_ZIP_URI, SPA_HTTP_EQUIV_URI
 
Fields inherited from interface com.ibm.portal.resolver.uri.Constants
ESCAPE_CHAR, ESCAPE_STRG
 
Constructor Summary
ZipDataURI(java.net.URI uri)
          Parses the URI and decodes the filename
 
Method Summary
 java.lang.String getFileName()
           
static java.net.URI newInstance(java.lang.String zipFileName)
          Deprecated. use newInstance(String, PocURIFactory) instead
static java.net.URI newInstance(java.lang.String zipFileName, PocURIFactory uriFct)
          Creates a new URI that points to a zip file associated with a specific page.
 
Methods inherited from class com.ibm.portal.resolver.uri.BaseURI
createURI, createURI, createURI, createURI, decode, decode, decode, decode, encode, encode, normalizeRawSchemeSpecificPart, normalizeRawSchemeSpecificPart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipDataURI

public ZipDataURI(java.net.URI uri)
Parses the URI and decodes the filename

Parameters:
uri - the SPA URI
Method Detail

newInstance

public static java.net.URI newInstance(java.lang.String zipFileName,
                                       PocURIFactory uriFct)
                                throws java.net.URISyntaxException
Creates a new URI that points to a zip file associated with a specific page. The page itself is not encoded

Parameters:
zipFileName - the ZIP file name
Returns:
the URI
Throws:
java.net.URISyntaxException
Since:
7.0

newInstance

@Deprecated
public static java.net.URI newInstance(java.lang.String zipFileName)
Deprecated. use newInstance(String, PocURIFactory) instead

Creates a new URI that points to a zip file associated with a specific page. The page itself is not encoded

Parameters:
zipFileName - the ZIP file name
Returns:
the URI

getFileName

public java.lang.String getFileName()
Returns:
the fileName