|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLConnection net.sf.dict4j.url.dict.DictURLConnection
public abstract class DictURLConnection
Field Summary | |
---|---|
protected java.lang.String |
database
|
protected java.lang.Integer |
offset
|
protected DictSession |
session
|
protected java.lang.String |
word
|
Fields inherited from class java.net.URLConnection |
---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
---|---|
DictURLConnection(java.net.URL url)
|
Method Summary | |
---|---|
void |
addRequestProperty(java.lang.String s,
java.lang.String s1)
Deprecated. This method is not used by DictURLConnection class |
void |
connect()
|
void |
disconnect()
|
boolean |
getAllowUserInteraction()
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getAuth()
|
java.lang.Object |
getContent(java.lang.Class[] classes)
|
java.lang.String |
getContentEncoding()
Deprecated. This method is not used by DictURLConnection class |
int |
getContentLength()
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getContentType()
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getDatabase()
|
long |
getDate()
Deprecated. This method is not used by DictURLConnection class |
boolean |
getDefaultUseCaches()
Deprecated. This method is not used by DictURLConnection class |
boolean |
getDoInput()
Deprecated. This method is not used by DictURLConnection class |
boolean |
getDoOutput()
Deprecated. This method is not used by DictURLConnection class |
long |
getExpiration()
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getHeaderField(int i)
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getHeaderField(java.lang.String s)
Deprecated. This method is not used by DictURLConnection class |
long |
getHeaderFieldDate(java.lang.String s,
long l)
Deprecated. This method is not used by DictURLConnection class |
int |
getHeaderFieldInt(java.lang.String s,
int i)
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getHeaderFieldKey(int i)
Deprecated. This method is not used by DictURLConnection class |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderFields()
Deprecated. This method is not used by DictURLConnection class |
long |
getIfModifiedSince()
Deprecated. This method is not used by DictURLConnection class |
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
Deprecated. This method is not used by DictURLConnection class |
java.lang.Integer |
getOffset()
|
java.io.OutputStream |
getOutputStream()
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getRequestProperties()
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getRequestProperty(java.lang.String s)
Deprecated. This method is not used by DictURLConnection class |
java.lang.String |
getUsername()
|
java.lang.String |
getWord()
|
protected abstract void |
parseParameters(java.lang.String[] parameters)
|
void |
setAllowUserInteraction(boolean b)
Deprecated. This method is not used by DictURLConnection class |
void |
setDefaultUseCaches(boolean b)
Deprecated. This method is not used by DictURLConnection class |
void |
setDoInput(boolean b)
Deprecated. This method is not used by DictURLConnection class |
void |
setDoOutput(boolean b)
Deprecated. This method is not used by DictURLConnection class |
void |
setIfModifiedSince(long l)
Deprecated. This method is not used by DictURLConnection class |
void |
setPassphrase(java.lang.String passphrase)
Whenever authentication is required, the client SHOULD request additional information (e.g., a passphrase) from the user. |
void |
setRequestProperty(java.lang.String s,
java.lang.String s1)
Deprecated. This method is not used by DictURLConnection class |
Methods inherited from class java.net.URLConnection |
---|
getConnectTimeout, getContent, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getPermission, getReadTimeout, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap, setReadTimeout, setUseCaches, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DictSession session
protected java.lang.String word
protected java.lang.String database
protected java.lang.Integer offset
Constructor Detail |
---|
public DictURLConnection(java.net.URL url) throws java.net.MalformedURLException
java.net.MalformedURLException
Method Detail |
---|
public void connect()
connect
in class java.net.URLConnection
public void disconnect()
protected abstract void parseParameters(java.lang.String[] parameters) throws java.net.MalformedURLException
java.net.MalformedURLException
public void setPassphrase(java.lang.String passphrase)
passphrase
- passphrase [RFC1738]public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.URLConnection
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public java.lang.Object getContent(java.lang.Class[] classes) throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public java.lang.String getWord()
public java.lang.String getDatabase()
public java.lang.Integer getOffset()
public java.lang.String getUsername()
public java.lang.String getAuth()
public java.lang.String getHeaderField(int i)
getHeaderField
in class java.net.URLConnection
public java.lang.String getHeaderFieldKey(int i)
getHeaderFieldKey
in class java.net.URLConnection
public long getHeaderFieldDate(java.lang.String s, long l)
getHeaderFieldDate
in class java.net.URLConnection
public int getHeaderFieldInt(java.lang.String s, int i)
getHeaderFieldInt
in class java.net.URLConnection
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
getHeaderFields
in class java.net.URLConnection
public java.lang.String getHeaderField(java.lang.String s)
getHeaderField
in class java.net.URLConnection
public long getLastModified()
getLastModified
in class java.net.URLConnection
public long getDate()
getDate
in class java.net.URLConnection
public long getExpiration()
getExpiration
in class java.net.URLConnection
public java.lang.String getContentEncoding()
getContentEncoding
in class java.net.URLConnection
public java.lang.String getContentType()
getContentType
in class java.net.URLConnection
public int getContentLength()
getContentLength
in class java.net.URLConnection
public void setDoInput(boolean b)
setDoInput
in class java.net.URLConnection
public boolean getDoInput()
getDoInput
in class java.net.URLConnection
public void setDoOutput(boolean b)
setDoOutput
in class java.net.URLConnection
public boolean getDoOutput()
getDoOutput
in class java.net.URLConnection
public void setAllowUserInteraction(boolean b)
setAllowUserInteraction
in class java.net.URLConnection
public boolean getAllowUserInteraction()
getAllowUserInteraction
in class java.net.URLConnection
public void setIfModifiedSince(long l)
setIfModifiedSince
in class java.net.URLConnection
public long getIfModifiedSince()
getIfModifiedSince
in class java.net.URLConnection
public boolean getDefaultUseCaches()
getDefaultUseCaches
in class java.net.URLConnection
public void setDefaultUseCaches(boolean b)
setDefaultUseCaches
in class java.net.URLConnection
public void setRequestProperty(java.lang.String s, java.lang.String s1)
setRequestProperty
in class java.net.URLConnection
public void addRequestProperty(java.lang.String s, java.lang.String s1)
addRequestProperty
in class java.net.URLConnection
public java.lang.String getRequestProperty(java.lang.String s)
getRequestProperty
in class java.net.URLConnection
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRequestProperties()
getRequestProperties
in class java.net.URLConnection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |