|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.content.ContentHttp
This does handling of the HTTP streams and makes appropriate calls to
do persisting and querying of the database. This should never need to
be directly accessed.
Supported API: false
Extendable: false
Field Summary | |
private static boolean |
ATTACHMENT_DOWNLOAD
|
private static String |
CLASSNAME
|
static String |
CONTENT_TYPE_HDR
|
private static boolean |
DEBUG
|
private static String |
DOWNLOAD_CONTENT_TYPE
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FILENAME_HDR
|
private static Vector |
formatNames
|
private static InputStream |
is
|
static String |
NAME_HDR
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static HTTPRequest |
request
|
private static String |
RESOURCE
|
private static HTTPResponse |
response
|
(package private) static long |
serialVersionUID
|
private static boolean |
SUN_ONE
|
private static String |
versionID
|
private static String |
VIEW_CONTENT_TYPE
|
Constructor Summary | |
ContentHttp()
|
Method Summary | |
private static void |
addCacheStatement(HTTPRequest request,
HTTPResponse response)
|
private static void |
cancelUpload(HttpContentOperation operation,
ContentHolder holder)
|
static void |
downloadContent(HTTPRequest request,
HTTPResponse response)
Deprecated. |
static void |
downloadContent(HTTPRequest request,
HTTPResponse response,
String fileName)
Deprecated. |
static void |
generateUploadHtml(HTTPRequest request,
HTTPResponse response)
Deprecated. |
private static ApplicationData |
parseAndSaveInfo(ContentHolder holder,
MPInputStream mis,
HttpOperationItem opItem)
|
private static ApplicationData |
parseAndSaveInfo(ContentHolder holder,
MPInputStream mis,
HttpOperationItem opItem,
boolean mustCreateNewFile)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ContentHttp thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
static void |
saveContent(HTTPRequest request,
HTTPResponse response)
This is the return method of the method that saves content of a ContentHolder posted up in the specified format via HTTP. |
static void |
saveContent(HTTPRequest request,
HTTPResponse response,
InputStream is)
This saves the content of a ContentHolder posted up in the specified format via HTTP. |
private static void |
saveContent(String qStr,
MPInputStreamIfc mis)
|
static void |
saveContent(String qStr,
Vector postEntryV)
|
static void |
uploadContent(HTTPRequest request,
HTTPResponse response)
Deprecated. |
static void |
uploadContent(HTTPRequest request,
HTTPResponse response,
InputStream is)
Deprecated. |
static void |
uploadContent(HTTPRequest request,
HTTPResponse response,
InputStream is,
boolean mustCreateNewFile)
|
static void |
viewContent(HTTPRequest request,
HTTPResponse response)
this method is for a simple download. |
static void |
viewContent(HTTPRequest request,
HTTPResponse response,
String fileName)
this method is for a simple download. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String versionID
public static final String CONTENT_TYPE_HDR
public static final String FILENAME_HDR
public static final String NAME_HDR
private static HTTPRequest request
private static HTTPResponse response
private static InputStream is
private static boolean DEBUG
private static boolean ATTACHMENT_DOWNLOAD
private static Vector formatNames
private static final String DOWNLOAD_CONTENT_TYPE
private static final String VIEW_CONTENT_TYPE
private static final boolean SUN_ONE
Constructor Detail |
public ContentHttp()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ContentHttp thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static void uploadContent(HTTPRequest request, HTTPResponse response, InputStream is) throws WTException, PropertyVetoException, IOException
request
- response
- is
-
WTException
PropertyVetoException
IOException
public static void uploadContent(HTTPRequest request, HTTPResponse response) throws WTException, PropertyVetoException, IOException, InvocationTargetException, IllegalAccessException
request
- response
-
WTException
PropertyVetoException
IOException
InvocationTargetException
IllegalAccessException
public static void downloadContent(HTTPRequest request, HTTPResponse response) throws WTException, IOException, PropertyVetoException
request
- response
-
WTException
IOException
PropertyVetoException
public static void viewContent(HTTPRequest request, HTTPResponse response) throws WTException, IOException, PropertyVetoException
request
- response
-
WTException
IOException
PropertyVetoException
public static void generateUploadHtml(HTTPRequest request, HTTPResponse response) throws WTException, PropertyVetoException, IOException, InvocationTargetException, IllegalAccessException
request
- response
-
WTException
PropertyVetoException
IOException
InvocationTargetException
IllegalAccessException
public static void saveContent(HTTPRequest request, HTTPResponse response, InputStream is) throws WTException, PropertyVetoException, IOException
request
- response
- is
-
WTException
PropertyVetoException
IOException
public static void saveContent(String qStr, Vector postEntryV) throws Exception
Exception
public static void saveContent(HTTPRequest request, HTTPResponse response) throws WTException, PropertyVetoException, IOException, InvocationTargetException, IllegalAccessException
request
- response
-
WTException
PropertyVetoException
IOException
InvocationTargetException
IllegalAccessException
private static void cancelUpload(HttpContentOperation operation, ContentHolder holder) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private static ApplicationData parseAndSaveInfo(ContentHolder holder, MPInputStream mis, HttpOperationItem opItem) throws WTException, PropertyVetoException, IOException
WTException
PropertyVetoException
IOException
private static ApplicationData parseAndSaveInfo(ContentHolder holder, MPInputStream mis, HttpOperationItem opItem, boolean mustCreateNewFile) throws WTException, PropertyVetoException, IOException
WTException
PropertyVetoException
IOException
private static void saveContent(String qStr, MPInputStreamIfc mis) throws Exception
Exception
private static void addCacheStatement(HTTPRequest request, HTTPResponse response)
public static void uploadContent(HTTPRequest request, HTTPResponse response, InputStream is, boolean mustCreateNewFile) throws WTException, PropertyVetoException, IOException
WTException
PropertyVetoException
IOException
public static void viewContent(HTTPRequest request, HTTPResponse response, String fileName) throws WTException, IOException, PropertyVetoException
request
- response
- fileName
-
WTException
IOException
PropertyVetoException
public static void downloadContent(HTTPRequest request, HTTPResponse response, String fileName) throws WTException, IOException, PropertyVetoException
request
- response
- fileName
-
WTException
IOException
PropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |