eXo JCR :: Component :: Extension Service 1.15.0-CR2

org.exoplatform.services.jcr.ext.resource
Class JcrURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.exoplatform.services.jcr.ext.resource.JcrURLConnection

public class JcrURLConnection
extends URLConnection

Version:
$Id: $
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
JcrURLConnection(UnifiedNodeReference nodeReference, SessionProvider sessionProvider, NodeRepresentationService nodeRepresentationService)
           
JcrURLConnection(UnifiedNodeReference nodeReference, SessionProvider sessionProvider, NodeRepresentationService nodeRepresentationService, boolean closeSessionProvider)
           
 
Method Summary
 void addRequestProperty(String key, String value)
           
 void connect()
           
 void disconnect()
          Close connection to JCR.
protected  void finalize()
           
 Object getContent()
           
 Object getContent(Class[] classes)
           
 String getContentEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 void setAllowUserInteraction(boolean allowuserinteraction)
           
 void setDoOutput(boolean dooutput)
           
 void setIfModifiedSince(long ifmodifiedsince)
           
 void setRequestProperty(String key, String value)
           
 void setUseCaches(boolean usecaches)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

eXo JCR :: Component :: Extension Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.