Package com.attivio.www.protocol.acs
Class AcsConnection
- java.lang.Object
-
- java.net.URLConnection
-
- com.attivio.www.protocol.acs.AcsConnection
-
public class AcsConnection extends java.net.URLConnectionProvides access to the content store via a custom 'acs' protocol. The protocol format is:acs://storeName/contentId
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAcsConnection(java.net.URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()static java.lang.StringcontentId(java.lang.String acs)static java.lang.StringcontentId(java.net.URL url)protected voidfinalize()intgetContentLength()java.io.InputStreamgetInputStream()longgetLastModified()static java.lang.Stringnamespace(java.lang.String url)static java.lang.Stringnamespace(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
-
-
-
-
Method Detail
-
getContentLength
public int getContentLength()
- Overrides:
getContentLengthin classjava.net.URLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModifiedin classjava.net.URLConnection
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Overrides:
getInputStreamin classjava.net.URLConnection- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
connect
public void connect() throws java.io.IOException- Specified by:
connectin classjava.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
-
-