org.exoplatform.services.jcr.ext.resource
Class JcrURLConnection
java.lang.Object
java.net.URLConnection
org.exoplatform.services.jcr.ext.resource.JcrURLConnection
public class JcrURLConnection
- extends URLConnection
- Version:
- $Id: $
- Author:
- Andrey Parfonov
| Methods inherited from class java.net.URLConnection |
getAllowUserInteraction, getConnectTimeout, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setFileNameMap, setReadTimeout, toString |
JcrURLConnection
public JcrURLConnection(UnifiedNodeReference nodeReference,
SessionProvider sessionProvider,
NodeRepresentationService nodeRepresentationService,
boolean closeSessionProvider)
throws MalformedURLException
- Throws:
MalformedURLException
JcrURLConnection
public JcrURLConnection(UnifiedNodeReference nodeReference,
SessionProvider sessionProvider,
NodeRepresentationService nodeRepresentationService)
throws MalformedURLException
- Throws:
MalformedURLException
connect
public void connect()
throws IOException
- Specified by:
connect in class URLConnection
- Throws:
IOException
disconnect
public void disconnect()
- Close connection to JCR.
getInputStream
public InputStream getInputStream()
throws IOException
- Overrides:
getInputStream in class URLConnection
- Throws:
IOException
getContent
public Object getContent()
throws IOException
- Overrides:
getContent in class URLConnection
- Throws:
IOException
getContent
public Object getContent(Class[] classes)
throws IOException
- Overrides:
getContent in class URLConnection
- Throws:
IOException
getContentType
public String getContentType()
- Overrides:
getContentType in class URLConnection
getContentLength
public int getContentLength()
- Overrides:
getContentLength in class URLConnection
setDoOutput
public void setDoOutput(boolean dooutput)
- Overrides:
setDoOutput in class URLConnection
getContentEncoding
public String getContentEncoding()
- Overrides:
getContentEncoding in class URLConnection
getLastModified
public long getLastModified()
- Overrides:
getLastModified in class URLConnection
setAllowUserInteraction
public void setAllowUserInteraction(boolean allowuserinteraction)
- Overrides:
setAllowUserInteraction in class URLConnection
setUseCaches
public void setUseCaches(boolean usecaches)
- Overrides:
setUseCaches in class URLConnection
setIfModifiedSince
public void setIfModifiedSince(long ifmodifiedsince)
- Overrides:
setIfModifiedSince in class URLConnection
addRequestProperty
public void addRequestProperty(String key,
String value)
- Overrides:
addRequestProperty in class URLConnection
setRequestProperty
public void setRequestProperty(String key,
String value)
- Overrides:
setRequestProperty in class URLConnection
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
Copyright © 2014 eXo Platform SAS. All Rights Reserved.