com.sapportals.wcm.util.uri

Class DataUri

java.lang.Object
  extended by com.sapportals.wcm.util.uri.GenericUri
      extended by com.sapportals.wcm.util.uri.DataUri
All Implemented Interfaces:
IUri

public class DataUri
extends GenericUri

A RFC2397 IUri implementation.

      dataurl    := "data:" [ mediatype ] [ ";base64" ] "," data
      mediatype  := [ type "/" subtype ] *( ";" parameter )
      data       := *urlchar
      parameter  := attribute "=" value
 

Copyright (c) SAP AG 2001-2005


Constructor Summary
DataUri(String remainder)
           
 
Method Summary
 String getContentType()
           
 byte[] getData()
           
 String getEncoding()
           
protected  IUri newInstance(String remainder)
          Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references.
 
Methods inherited from class com.sapportals.wcm.util.uri.GenericUri
equals, equals, getRemainder, getScheme, hashCode, resolve, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataUri

public DataUri(String remainder)
        throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getData

public byte[] getData()

getEncoding

public String getEncoding()

getContentType

public String getContentType()

newInstance

protected IUri newInstance(String remainder)
                    throws IllegalArgumentException
Description copied from class: GenericUri
Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references. This method should be overridden by subclasses to construct their own class.

Overrides:
newInstance in class GenericUri
Parameters:
remainder - new opaque part of uri
Returns:
new IUri instance
Throws:
IllegalArgumentException - when remainder is not legal
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice