beepcore-java-commits Mailing List for Java BEEP Core (Page 13)
Status: Beta
Brought to you by:
huston
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(22) |
Aug
(1) |
Sep
|
Oct
(16) |
Nov
(60) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(3) |
Feb
|
Mar
(4) |
Apr
(2) |
May
(13) |
Jun
|
Jul
|
Aug
(10) |
Sep
(34) |
Oct
(27) |
Nov
(2) |
Dec
(2) |
| 2003 |
Jan
|
Feb
|
Mar
(3) |
Apr
(15) |
May
(11) |
Jun
(14) |
Jul
(5) |
Aug
(1) |
Sep
(24) |
Oct
(4) |
Nov
(26) |
Dec
(1) |
| 2004 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Huston F. <hu...@us...> - 2001-07-28 17:25:55
|
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core
In directory usw-pr-cvs1:/tmp/cvs-serv22797
Modified Files:
FrameDataStream.java
Log Message:
Fixed parseHeaders to set parsingHeaders to false when done
Index: FrameDataStream.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/FrameDataStream.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** FrameDataStream.java 2001/05/16 18:46:20 1.6
--- FrameDataStream.java 2001/07/28 17:25:52 1.7
***************
*** 243,246 ****
--- 243,247 ----
// reset the mark to data portion of payload
this.headersParsed = true;
+ this.parsingHeaders = false;
return;
|
|
From: Huston F. <hu...@us...> - 2001-07-27 06:17:42
|
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core
In directory usw-pr-cvs1:/tmp/cvs-serv21678
Modified Files:
ProfileRegistry.java SessionTuningProperties.java
Log Message:
Changed addStartChannelListener to accept null for tuning properties
Index: ProfileRegistry.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/ProfileRegistry.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ProfileRegistry.java 2001/07/03 20:47:25 1.4
--- ProfileRegistry.java 2001/07/27 06:17:40 1.5
***************
*** 186,189 ****
--- 186,193 ----
tempProfile.listener = listener;
+
+ if (tuning == null) {
+ tuning = SessionTuningProperties.emptyTuningProperties;
+ }
tempProfile.tuning = tuning;
Index: SessionTuningProperties.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/SessionTuningProperties.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SessionTuningProperties.java 2001/06/28 15:42:49 1.1
--- SessionTuningProperties.java 2001/07/27 06:17:40 1.2
***************
*** 45,48 ****
--- 45,51 ----
"SessionTuningProperties: No properties";
+ static final SessionTuningProperties emptyTuningProperties =
+ new SessionTuningProperties();
+
// Data
private Hashtable properties;
|
|
From: Huston F. <hu...@us...> - 2001-07-27 06:11:57
|
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core In directory usw-pr-cvs1:/tmp/cvs-serv20784 Modified Files: Frame.java Log Message: Changed doc Index: Frame.java =================================================================== RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/core/Frame.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** Frame.java 2001/05/25 15:28:30 1.8 --- Frame.java 2001/07/27 06:11:54 1.9 *************** *** 27,31 **** /** ! * Frame encapsulates the MSG, RPY, ERR, ANS and NUL BEEP message types. * Contains a the <code>Channel</code> this frame belongs to, the BEEP Frame * Payload which holds the BEEP Frames's Header, Trailer, and the message --- 27,32 ---- /** ! * Frame encapsulates a BEEP protocol frame for MSG, RPY, ERR, ANS and NUL ! * BEEP message types. * Contains a the <code>Channel</code> this frame belongs to, the BEEP Frame * Payload which holds the BEEP Frames's Header, Trailer, and the message *************** *** 36,40 **** * @author Jay Kint * @author Scott Pead ! * @version $Revision, $Date$ * * @see FrameDataStream --- 37,41 ---- * @author Jay Kint * @author Scott Pead ! * @version $Revision$, $Date$ * * @see FrameDataStream |
|
From: Huston F. <hu...@us...> - 2001-07-20 23:26:16
|
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/echo
In directory usw-pr-cvs1:/tmp/cvs-serv1896
Modified Files:
EchoProfile.java
Log Message:
Fixed bug for MSGs larger than 4k
Index: EchoProfile.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/echo/EchoProfile.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** EchoProfile.java 2001/07/03 20:51:28 1.7
--- EchoProfile.java 2001/07/20 23:26:13 1.8
***************
*** 91,95 ****
while (true) {
-
try {
int n = is.read(buf);
--- 91,94 ----
***************
*** 104,119 ****
return;
}
try {
! message.sendRPY(new ByteDataStream(data.toByteArray()));
! } catch (BEEPException e) {
! try {
! message.sendERR(BEEPError.CODE_REQUESTED_ACTION_ABORTED,
! "Error sending RPY");
! } catch (BEEPException x) {
! message.getChannel().getSession().terminate(x.getMessage());
! }
! return;
}
}
}
--- 103,118 ----
return;
}
+ }
+ try {
+ message.sendRPY(new ByteDataStream(data.toByteArray()));
+ } catch (BEEPException e) {
try {
! message.sendERR(BEEPError.CODE_REQUESTED_ACTION_ABORTED,
! "Error sending RPY");
! } catch (BEEPException x) {
! message.getChannel().getSession().terminate(x.getMessage());
}
+ return;
}
}
|
|
From: Huston F. <hu...@us...> - 2001-07-19 21:42:41
|
Update of /cvsroot/beepcore-java/beepcore-java
In directory usw-pr-cvs1:/tmp/cvs-serv20278
Modified Files:
build.xml
Log Message:
added target for Log4JLog
Index: build.xml
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/build.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** build.xml 2001/07/12 07:08:42 1.12
--- build.xml 2001/07/19 21:42:39 1.13
***************
*** 125,128 ****
--- 125,129 ----
<javac srcdir="${example.src.dir}/" destdir="${example.build.dir}" >
<include name="**/*.java"/>
+ <exclude name="**/util/Log4JLog.java"/>
<classpath>
<pathelement path="${java.class.path}"/>
***************
*** 133,137 ****
</target>
! <target name="example" depends="example-compile">
<mkdir dir="${release.dir}/lib"/>
<jar jarfile="${release.dir}/lib/${example.jar.name}"
--- 134,138 ----
</target>
! <target name="example" depends="example-compile,log4jlog">
<mkdir dir="${release.dir}/lib"/>
<jar jarfile="${release.dir}/lib/${example.jar.name}"
***************
*** 313,315 ****
--- 314,334 ----
<delete dir="${doc.dir}" />
</target>
+
+ <target name="log4jCheck">
+ <available classname="org.apache.log4j.Category"
+ property="log4j-present"
+ classpath="${java.class.path}"/>
+ </target>
+
+ <target name="log4jlog" depends="init,log4jCheck" if="log4j-present">
+ <mkdir dir="${example.build.dir}"/>
+ <javac srcdir="${example.src.dir}/" destdir="${example.build.dir}" >
+ <include name="**/util/Log4JLog.java"/>
+ <classpath>
+ <pathelement path="${java.class.path}"/>
+ <pathelement location="${release.dir}/lib/${core.jar.name}"/>
+ </classpath>
+ </javac>
+ </target>
+
</project>
|
|
From: Huston F. <hu...@us...> - 2001-07-19 21:39:25
|
Update of /cvsroot/beepcore-java/beepcore-java/example/org/beepcore/beep/util
In directory usw-pr-cvs1:/tmp/cvs-serv19696
Added Files:
Log4JLog.java
Log Message:
Initial check in
--- NEW FILE: Log4JLog.java ---
/*-------------------------------------------------------------------------
* Copyright (c) 2000, Permabit, Inc. All rights reserved.
*
* $Id: Log4JLog.java,v 1.1 2001/07/19 21:39:22 huston Exp $
*
*/
package org.beepcore.beep.util;
import java.io.IOException;
import org.beepcore.beep.util.LogService;
import org.apache.log4j.Category;
import org.apache.log4j.Priority;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.FileAppender;
/** This class serves as a translator from the
Beepcore-Java LogService logging mechanism to the
Log4J logging package.
@author Dave Golombek (da...@pe...)
@see <a href="www.beepcore.org">Beepcore-Java</a>
@see org.beepcore.beep.util.LogService
@see <a href="jakarta.apache.org/log4j/">Log4J</a>
*/
public class Log4JLog implements LogService {
/** Log4j Logging Category */
private static Category cat =
Category.getInstance(Log4JLog.class.getName());
/** Map the LogService priorities into Log4J priorities. This is
not a clean mapping, since there are more LogService priorities
than Log4J categories. If a one-to-one mapping is desired, the
Log4J Priority class could be overridden by a new class
supporting all desired priorities */
private static Priority[] mapping = { Priority.FATAL, // SEV_EMERGENCY
Priority.ERROR, // SEV_ALERT
Priority.ERROR, // SEV_CRITICAL
Priority.ERROR, // SEV_ERROR
Priority.WARN, // SEV_WARNING
Priority.WARN, // SEV_NOTICE
Priority.INFO, // SEV_INFORMATIONAL
Priority.DEBUG, // SEV_DEBUG
Priority.DEBUG, // SEV_DEBUG_VERBOSE
};
public Log4JLog() {
}
public Log4JLog(int severity) {
cat.setPriority(mapping[severity]);
}
public void logEntry(int severity, String service, String message) {
cat.log(mapping[severity], service + ": " + message);
}
public void logEntry(int severity, String service, Throwable exception) {
cat.log(mapping[severity], service, exception);
}
public boolean isLogged(int severity) {
return(cat.isEnabledFor(mapping[severity]));
}
public void setSeverity(int severity) {
cat.setPriority(mapping[severity]);
}
}
|
|
From: Huston F. <hu...@us...> - 2001-07-19 20:16:49
|
Update of /cvsroot/beepcore-java/beepcore-java/example/org/beepcore/beep/util In directory usw-pr-cvs1:/tmp/cvs-serv29539/util Log Message: Directory /cvsroot/beepcore-java/beepcore-java/example/org/beepcore/beep/util added to the repository |
|
From: Huston F. <hu...@us...> - 2001-07-18 23:06:00
|
Update of /cvsroot/beepcore-java/beepcore-java/example/org/beepcore/beep/example In directory usw-pr-cvs1:/tmp/cvs-serv19924 Added Files: README_EXAMPLE Log Message: Initial check in --- NEW FILE: README_EXAMPLE --- beepcore-java 0.9 examples -------------------------- This package includes sample beep applications which use the beepcore-java library. Beepd is a generic listener which can load any profile that supports the Profile interface. beepd-config.xml is a sample configuration file for Beepd. Bing is an initiator which pings a beep listener using the EchoProfile. Requirements ------------ Beepd requires a XML parser that implements the hasAttribute method for the org.w3c.dom.Element class. Xerces is the library we use for our development and testing. |