public class ServletURLConnection extends HttpURLConnection
chunkLength, fixedContentLength, fixedContentLengthLong, HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION, instanceFollowRedirects, method, responseCode, responseMessageallowUserInteraction, connected, doInput, doOutput, ifModifiedSince, useCaches| Modifier | Constructor and Description |
|---|---|
protected |
ServletURLConnection(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
String |
getContentType() |
InputStream |
getErrorStream() |
Map<String,List<String>> |
getHeaderFields() |
InputStream |
getInputStream() |
long |
getLastModified() |
OutputStream |
getOutputStream() |
int |
getResponseCode() |
boolean |
usingProxy() |
getFollowRedirects, getHeaderField, getHeaderFieldDate, getHeaderFieldKey, getInstanceFollowRedirects, getPermission, getRequestMethod, getResponseMessage, setChunkedStreamingMode, setFixedLengthStreamingMode, setFixedLengthStreamingMode, setFollowRedirects, setInstanceFollowRedirects, setRequestMethodaddRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldInt, getHeaderFieldLong, getIfModifiedSince, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toStringprotected ServletURLConnection(URL url) throws URISyntaxException
URISyntaxExceptionpublic void connect()
throws IOException
connect in class URLConnectionIOExceptionURLConnection.connect()public InputStream getErrorStream()
getErrorStream in class HttpURLConnectionHttpURLConnection.getErrorStream()public InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionURLConnection.getInputStream()public long getLastModified()
getLastModified in class URLConnectionURLConnection.getLastModified()public OutputStream getOutputStream() throws IOException
getOutputStream in class URLConnectionIOExceptionURLConnection.getOutputStream()public String getContentType()
getContentType in class URLConnectionURLConnection.getContentType()public int getResponseCode()
getResponseCode in class HttpURLConnectionHttpURLConnection.getResponseCode()public void disconnect()
disconnect in class HttpURLConnectionHttpURLConnection.disconnect()public boolean usingProxy()
usingProxy in class HttpURLConnectionHttpURLConnection.usingProxy()public Map<String,List<String>> getHeaderFields()
getHeaderFields in class URLConnectionURLConnection.getHeaderFields()Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.