Class AcsConnection


  • public class AcsConnection
    extends java.net.URLConnection
    Provides access to the content store via a custom 'acs' protocol. The protocol format is: acs://storeName/contentId
    • Field Summary

      • Fields inherited from class java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AcsConnection​(java.net.URL url)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect()
      static java.lang.String contentId​(java.lang.String acs)  
      static java.lang.String contentId​(java.net.URL url)  
      protected void finalize()
      int getContentLength()
      java.io.InputStream getInputStream()
      long getLastModified()
      static java.lang.String namespace​(java.lang.String url)  
      static java.lang.String namespace​(java.net.URL url)  
      • Methods inherited from class java.net.URLConnection

        addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AcsConnection

        protected AcsConnection​(java.net.URL url)
        Parameters:
        url -
    • Method Detail

      • getContentLength

        public int getContentLength()
        Overrides:
        getContentLength in class java.net.URLConnection
      • getLastModified

        public long getLastModified()
        Overrides:
        getLastModified in class java.net.URLConnection
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Overrides:
        getInputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • connect

        public void connect()
                     throws java.io.IOException
        Specified by:
        connect in class java.net.URLConnection
        Throws:
        java.io.IOException
      • namespace

        public static java.lang.String namespace​(java.lang.String url)
        Parameters:
        url -
        Returns:
        the content store namespace associated with the url
      • namespace

        public static java.lang.String namespace​(java.net.URL url)
        Parameters:
        url -
        Returns:
        the content store namespace associated with the url
      • contentId

        public static java.lang.String contentId​(java.lang.String acs)
        Parameters:
        acs -
        Returns:
        the contentId associated with the acs uri
      • contentId

        public static java.lang.String contentId​(java.net.URL url)
        Parameters:
        acs -
        Returns:
        the contentId associated with the acs url