public class JcrURLConnection extends URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Constructor and Description |
|---|
JcrURLConnection(UnifiedNodeReference nodeReference,
SessionProvider sessionProvider,
NodeRepresentationService nodeRepresentationService) |
JcrURLConnection(UnifiedNodeReference nodeReference,
SessionProvider sessionProvider,
NodeRepresentationService nodeRepresentationService,
boolean closeSessionProvider) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getAllowUserInteraction, getConnectTimeout, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setFileNameMap, setReadTimeout, toStringpublic JcrURLConnection(UnifiedNodeReference nodeReference, SessionProvider sessionProvider, NodeRepresentationService nodeRepresentationService, boolean closeSessionProvider) throws MalformedURLException
MalformedURLExceptionpublic JcrURLConnection(UnifiedNodeReference nodeReference, SessionProvider sessionProvider, NodeRepresentationService nodeRepresentationService) throws MalformedURLException
MalformedURLExceptionpublic void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic void disconnect()
public InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionpublic Object getContent() throws IOException
getContent in class URLConnectionIOExceptionpublic Object getContent(Class[] classes) throws IOException
getContent in class URLConnectionIOExceptionpublic String getContentType()
getContentType in class URLConnectionpublic int getContentLength()
getContentLength in class URLConnectionpublic void setDoOutput(boolean dooutput)
setDoOutput in class URLConnectionpublic String getContentEncoding()
getContentEncoding in class URLConnectionpublic long getLastModified()
getLastModified in class URLConnectionpublic void setAllowUserInteraction(boolean allowuserinteraction)
setAllowUserInteraction in class URLConnectionpublic void setUseCaches(boolean usecaches)
setUseCaches in class URLConnectionpublic void setIfModifiedSince(long ifmodifiedsince)
setIfModifiedSince in class URLConnectionpublic void addRequestProperty(String key, String value)
addRequestProperty in class URLConnectionpublic void setRequestProperty(String key, String value)
setRequestProperty in class URLConnectionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.