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.InputStreamisprivate java.io.OutputStreamosprivate intportstatic intPORTprivate static java.lang.StringPOST_CONTENT_TYPEprivate HTTPResponseParserresponseprivate java.net.Socketsocketprivate static java.lang.StringUSER_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 voidconnect()voiddisconnect()java.lang.StringgetHeaderField(java.lang.String name)java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()-
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, 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, 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:
connectin classjava.net.URLConnection- Throws:
java.io.IOException
-
disconnect
public void disconnect()
- Specified by:
disconnectin classGSIURLConnection
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException- Overrides:
getOutputStreamin classjava.net.URLConnection- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Overrides:
getInputStreamin classjava.net.URLConnection- Throws:
java.io.IOException
-
getHeaderField
public java.lang.String getHeaderField(java.lang.String name)
- Overrides:
getHeaderFieldin classjava.net.URLConnection
-
-