gecko-dev/java/webclient/src_moz
edburns%acm.org 0d247279bf This checkin enables finding out the request method and response status
of a URL_LOAD event.  I'm still working on getting the request body via
the nsIUploadChannel interface.  Next step will be to get that working.
I'm currently running into problems where the END_URL event for a POST
doesn't have a status.  I think this is because I'm using the
Navigation.post() method rather than simulating a user post by pressing
a form submit button.

A classes_spec/org/mozilla/webclient/impl/wrapper_native/NativeInputStream.java
A src_moz/NativeInputStreamImpl.cpp

- Class to enable reading the post body from the request.

M build.xml

- add NativeInputStream to JNI generation

M classes_spec/org/mozilla/webclient/PageInfoListener.java

 * <p>This {@link DocumentLoadListener} subclass adds the ability to get
 * detailed information on each event. </p>
 *
 * <p>The <code>eventData</code> property of the
 * <code>DocumentLoadEvent</code> instance will be a
 * <code>java.util.Map</code>.  The following entries may be present in
 * this map for the following <code>*_EVENT_MASK</code> types in
 * <code>DocumentLoadEvent</code>.</p>
 *
 * <dl>
 *
 * <dt>For all <code>*_EVENT_MASK</code> types</dt>
 *
 * <dd><p>the map will contain an entry under the key "<code>URI</code>"
 * without the quotes.  This will be the fully qualified URI for the
 * event. </p></dd>
 *
 * <dt>For <code>START_URL_LOAD</code> type</dt>
 *
 * <dd><p>The map will contain an entry under the key
 * "<code>method</code>" without the quotes.  This will be the request
 * method for this event.  The map will also contain an entry under the
 * key "<code>headers</code>".  This entry will be a
 * <code>java.util.Map</code> of all the request headers.</p></dd>
 *
 * <dt>For <code>END_URL_LOAD</code> type</dt>
 *
 * <dd><p>The map will contain an entry under the key
 * "<code>method</code>" without the quotes.  This will be the request
 * method for this event.  The map will contain an entry under the key
 * "<code>status</code>" without the quotes.  This will be the response
 * status string from the server, such as "<code>200 OK</code>".  The
 * map will also contain an entry under the key "<code>headers</code>".
 * This entry will be a <code>java.util.Map</code> of all the response
 * headers.</p></dd>
 *
 * </dl>

M src_moz/EmbedProgress.cpp

- leverage nsIHttpChannel methods to get request method, response
  status, and post body.

M src_moz/Makefile.in

- add NativeInputStream

M src_share/jni_util.cpp
M src_share/jni_util.h

- new constants

- add variant of ThrowExceptionToJava that takes the exception class name.

M test/automated/src/classes/org/mozilla/webclient/DocumentLoadListenerTest.java

- new test content.  Post related content commented out.
2005-02-28 17:15:45 +00:00
..
gtk M build.xml 2004-04-23 14:52:21 +00:00
motif This is a checkpoint milestone for webclient 2.0. Webclient currently 2003-09-28 06:29:22 +00:00
win32 M build-tests.xml 2004-04-20 16:17:43 +00:00
.cvsignore
BookmarksImpl.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
CBrowserContainer.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CBrowserContainer.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CurrentPageActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CurrentPageActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
CurrentPageImpl.cpp This checkin re-enables printing. Thanks to Kyle Yuan from Sun Microsystems. 2005-02-14 02:37:51 +00:00
dom_util.cpp Make webclient compile with Mozilla 1.6. Unit tests still don't run. 2004-02-23 06:26:54 +00:00
dom_util.h
EmbedEventListener.cpp This checkin has the basic functionality of NewWindowListener 2005-01-18 15:20:52 +00:00
EmbedEventListener.h This checkin has the basic functionality of NewWindowListener 2005-01-18 15:20:52 +00:00
EmbedProgress.cpp This checkin enables finding out the request method and response status 2005-02-28 17:15:45 +00:00
EmbedProgress.h This checkin implements a response header listener feature. 2004-09-09 20:17:18 +00:00
EmbedWindow.cpp Ok after this checkin we now have all the functionality of Sun's JDIC 2004-06-25 13:59:54 +00:00
EmbedWindow.h Ok after this checkin we now have all the functionality of Sun's JDIC 2004-06-25 13:59:54 +00:00
EventRegistrationImpl.cpp This checkin has the basic functionality of NewWindowListener 2005-01-18 15:20:52 +00:00
HistoryActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
HistoryActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
HistoryImpl.cpp Thanks again to Michael Klepikov for these fixes. 2004-08-03 17:16:57 +00:00
HttpHeaderVisitorImpl.cpp This checkin implements a response header listener feature. 2004-09-09 20:17:18 +00:00
HttpHeaderVisitorImpl.h This checkin implements a response header listener feature. 2004-09-09 20:17:18 +00:00
InputStreamShim.cpp This checkin makes DocumentLoadListener be fully functional for the 2004-06-14 15:34:42 +00:00
InputStreamShim.h This checkin makes DocumentLoadListener be fully functional for the 2004-06-14 15:34:42 +00:00
install_win32.js
ISupportsPeer.cpp This is a checkpoint milestone for webclient 2.0. Webclient currently 2003-09-28 06:29:22 +00:00
Makefile.in This checkin enables finding out the request method and response status 2005-02-28 17:15:45 +00:00
NativeBrowserControl.cpp This checkin has the basic functionality of NewWindowListener 2005-01-18 15:20:52 +00:00
NativeBrowserControl.h This checkin has the basic functionality of NewWindowListener 2005-01-18 15:20:52 +00:00
NativeEventThread.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
NativeEventThreadActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
NativeEventThreadActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
NativeInputStreamImpl.cpp This checkin enables finding out the request method and response status 2005-02-28 17:15:45 +00:00
NativeWrapperFactory.cpp M dom/src/Makefile.in 2004-04-16 19:02:21 +00:00
NativeWrapperFactory.h The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
NavigationActionEvents.cpp This change-bundle enables webclient to build and run with mozilla 1.7. 2004-09-29 22:01:26 +00:00
NavigationActionEvents.h This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
NavigationImpl.cpp This correctly implements the keyListener logic. I had the mapping 2004-12-01 15:46:23 +00:00
ns_globals.h This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
ns_util_export.cpp
ns_util.cpp This change-bundle enables webclient to build and run with mozilla 1.7. 2004-09-29 22:01:26 +00:00
ns_util.h This change-bundle is the start of loadFromStream(). Currently, I'm 2004-04-28 16:40:15 +00:00
nsActions.cpp
nsActions.h
PreferencesImpl.cpp cvslog.txt 2004-10-10 02:02:52 +00:00
ProfileManagerImpl.cpp This change-bundle fixes the long standing problem where you couldn't 2004-11-05 06:40:27 +00:00
PromptActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
PromptActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
rdf_progids.h
rdf_util.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
rdf_util.h This is a checkpoint milestone for webclient 2.0. Webclient currently 2003-09-28 06:29:22 +00:00
RDFEnumeration.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
RDFTreeNode.cpp The churn continues. After this checkin, BrowserControlFactoryTest 2004-04-15 22:58:08 +00:00
wcIBrowserContainer.h
WindowControlActionEvents.cpp - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
WindowControlActionEvents.h - rename initContext to NativeBrowserControl, at both the native and 2004-04-10 21:50:39 +00:00
WindowControlImpl.cpp This checkin is the next step for getting DocumentLoadListener to work. 2004-06-11 15:55:48 +00:00
WindowCreator.cpp This checkin has the basic functionality of NewWindowListener 2005-01-18 15:20:52 +00:00
WindowCreator.h This checkin verifies that loading documents over HTTP works as 2004-06-22 19:23:23 +00:00
WrapperFactoryImpl.cpp This checkin implements a response header listener feature. 2004-09-09 20:17:18 +00:00
wsRDFObserver.cpp r=edburns 2003-07-13 04:23:49 +00:00
wsRDFObserver.h