|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.dao.http.DAO
public abstract class DAO
An abstract class to supports Data Access Objects that read from an HTTP URL. This differs from a stream-based Data Access Object only that HTTP DAOs create their own stream to a URL. This is used in situations where request-specific data is encoded into the URL.
| Constructor Summary | |
|---|---|
DAO()
|
|
| Method Summary | |
|---|---|
protected InputStream |
getStream(String url)
Opens a connection to a URL and returns a stream to the data. |
void |
setMethod(String method)
Sets the HTTP method to use if not GET. |
void |
setSSLContext(SSLContext ctxt)
Overrides the context used to generate SSL context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DAO()
| Method Detail |
|---|
public void setSSLContext(SSLContext ctxt)
ctxt - the SSLContextpublic void setMethod(String method)
method - the method name
protected InputStream getStream(String url)
throws IOException
url - the URL to connect to
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||