Package org.globus.net
Class GSIHttpURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.globus.net.GSIURLConnection
-
- org.globus.net.GSIHttpURLConnection
-
public class GSIHttpURLConnection extends GSIURLConnection
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.InputStream
is
private java.io.OutputStream
os
private int
port
static int
PORT
private static java.lang.String
POST_CONTENT_TYPE
private HTTPResponseParser
response
private java.net.Socket
socket
private static java.lang.String
USER_AGENT
-
Fields inherited from class org.globus.net.GSIURLConnection
authorization, credentials, delegationType, GSS_MODE_PROPERTY, gssMode
-
-
Constructor Summary
Constructors Constructor Description GSIHttpURLConnection(java.net.URL u)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect()
void
disconnect()
java.lang.String
getHeaderField(java.lang.String name)
java.io.InputStream
getInputStream()
java.io.OutputStream
getOutputStream()
-
Methods inherited from class org.globus.net.GSIURLConnection
getAuthorization, getCredentials, getDelegationType, getExpectedName, getGSSMode, setAuthorization, setCredentials, setDelegationType, setGSSMode, setRequestProperty
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setUseCaches, toString
-
-
-
-
Field Detail
-
PORT
public static final int PORT
- See Also:
- Constant Field Values
-
USER_AGENT
private static final java.lang.String USER_AGENT
- See Also:
- Constant Field Values
-
POST_CONTENT_TYPE
private static final java.lang.String POST_CONTENT_TYPE
- See Also:
- Constant Field Values
-
socket
private java.net.Socket socket
-
port
private int port
-
response
private HTTPResponseParser response
-
is
private java.io.InputStream is
-
os
private java.io.OutputStream os
-
-
Method Detail
-
connect
public void connect() throws java.io.IOException
- Specified by:
connect
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
disconnect
public void disconnect()
- Specified by:
disconnect
in classGSIURLConnection
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Overrides:
getOutputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStream
in classjava.net.URLConnection
- Throws:
java.io.IOException
-
getHeaderField
public java.lang.String getHeaderField(java.lang.String name)
- Overrides:
getHeaderField
in classjava.net.URLConnection
-
-