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.URLConnection
Provides access to the content store via a custom 'acs' protocol. The protocol format is:acs://storeName/contentId
-
-
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
-
-
-
-
Method Detail
-
getContentLength
public int getContentLength()
- Overrides:
getContentLength
in classjava.net.URLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModified
in classjava.net.URLConnection
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
connect
public void connect() throws java.io.IOException
- Specified by:
connect
in 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
-
-