Class AjaxURLConnection
java.lang.Object
java.net.URLConnection
javajs.util.AjaxURLConnection
A method to allow a JavaScript Ajax
-
Field Summary
Fields inherited from class URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()voidoutputBytes(byte[] bytes) voidoutputString(String post) Methods inherited from class URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
Constructor Details
-
AjaxURLConnection
-
-
Method Details
-
connect
- Specified by:
connectin classURLConnection- Throws:
IOException
-
outputBytes
public void outputBytes(byte[] bytes) -
outputString
-
getInputStream
- Overrides:
getInputStreamin classURLConnection
-
getContents
- Returns:
- javajs.util.SB or byte[], depending upon the file type
-