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 java.net.URLConnection

Version:
$Id: JcrURLConnection.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Andrey Parfonov

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
JcrURLConnection(UnifiedNodeReference nodeReference, javax.jcr.Session session, NodeRepresentationService nodeRepresentationService)
           
 
Method Summary
 void addRequestProperty(java.lang.String key, java.lang.String value)
          
 void connect()
          
 void disconnect()
          Close JCR session.
 void finalize()
          
 java.lang.Object getContent()
          
 java.lang.Object getContent(java.lang.Class[] classes)
          
 java.lang.String getContentEncoding()
          
 int getContentLength()
          
 java.lang.String getContentType()
          
 java.io.InputStream getInputStream()
          
 long getLastModified()
          
 void setAllowUserInteraction(boolean allowuserinteraction)
          
 void setDoOutput(boolean dooutput)
          
 void setIfModifiedSince(long ifmodifiedsince)
          
 void setRequestProperty(java.lang.String key, java.lang.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,
                        javax.jcr.Session session,
                        NodeRepresentationService nodeRepresentationService)
                 throws java.net.MalformedURLException
Parameters:
nodeReference - node reference
session - jcr session
nodeRepresentationService - node representation service
Throws:
java.net.MalformedURLException - if URL syntax incorrect
Method Detail

connect

public void connect()
             throws java.io.IOException

Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException

finalize

public void finalize()

Overrides:
finalize in class java.lang.Object

disconnect

public void disconnect()
Close JCR session.


getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException

Overrides:
getInputStream in class java.net.URLConnection
Throws:
java.io.IOException

getContent

public java.lang.Object getContent()
                            throws java.io.IOException

Overrides:
getContent in class java.net.URLConnection
Throws:
java.io.IOException

getContent

public java.lang.Object getContent(java.lang.Class[] classes)
                            throws java.io.IOException

Overrides:
getContent in class java.net.URLConnection
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()

Overrides:
getContentType in class java.net.URLConnection

getContentLength

public int getContentLength()

Overrides:
getContentLength in class java.net.URLConnection

setDoOutput

public void setDoOutput(boolean dooutput)

Overrides:
setDoOutput in class java.net.URLConnection

getContentEncoding

public java.lang.String getContentEncoding()

Overrides:
getContentEncoding in class java.net.URLConnection

getLastModified

public long getLastModified()

Overrides:
getLastModified in class java.net.URLConnection

setAllowUserInteraction

public void setAllowUserInteraction(boolean allowuserinteraction)

Overrides:
setAllowUserInteraction in class java.net.URLConnection

setUseCaches

public void setUseCaches(boolean usecaches)

Overrides:
setUseCaches in class java.net.URLConnection

setIfModifiedSince

public void setIfModifiedSince(long ifmodifiedsince)

Overrides:
setIfModifiedSince in class java.net.URLConnection

addRequestProperty

public void addRequestProperty(java.lang.String key,
                               java.lang.String value)

Overrides:
addRequestProperty in class java.net.URLConnection

setRequestProperty

public void setRequestProperty(java.lang.String key,
                               java.lang.String value)

Overrides:
setRequestProperty in class java.net.URLConnection


Copyright © 2011 eXo Platform SAS. All Rights Reserved.