org.xwiki.classloader.internal.protocol.attachmentjar
Class AttachmentURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.xwiki.classloader.internal.protocol.attachmentjar.AttachmentURLConnection

public class AttachmentURLConnection
extends java.net.URLConnection

URL Connection that takes its content from a document attachment.

Since:
2.0.1
Version:
$Id$

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
AttachmentURLConnection(java.net.URL url, AttachmentReference attachmentReference, DocumentAccessBridge documentAccessBridge)
           
 
Method Summary
 void connect()
          
 java.io.InputStream getInputStream()
          
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachmentURLConnection

public AttachmentURLConnection(java.net.URL url,
                               AttachmentReference attachmentReference,
                               DocumentAccessBridge documentAccessBridge)
Parameters:
url - the URL to connect to
Since:
2.2M1
Method Detail

connect

public void connect()

Specified by:
connect in class java.net.URLConnection
See Also:
URLConnection.connect()

getInputStream

public java.io.InputStream getInputStream()

Overrides:
getInputStream in class java.net.URLConnection
See Also:
URLConnection.getInputStream()


Copyright © 2004-2011 XWiki. All Rights Reserved.