mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
synch from ScormEngine branch
This commit is contained in:
parent
e8dc2da052
commit
fa915096b2
@ -260,6 +260,15 @@
|
|||||||
<Get>Calendar.getInstance().getTime()</Get>
|
<Get>Calendar.getInstance().getTime()</Get>
|
||||||
<Set>${this:16}.setNow(${value})</Set>
|
<Set>${this:16}.setNow(${value})</Set>
|
||||||
</Property>
|
</Property>
|
||||||
|
<Property>
|
||||||
|
<Imports>
|
||||||
|
<Import>java.util.Calendar</Import>
|
||||||
|
<Import>java.util.TimeZone</Import>
|
||||||
|
</Imports>
|
||||||
|
<Type>System.DateTime</Type>
|
||||||
|
<Name>UtcNow</Name>
|
||||||
|
<Get>Calendar.getInstance(TimeZone.getTimeZone("UTC")).getTime()</Get>
|
||||||
|
</Property>
|
||||||
<Property>
|
<Property>
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>java.util.Date</Import>
|
<Import>java.util.Date</Import>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file is
|
This file is
|
||||||
@ -115,6 +115,24 @@
|
|||||||
<Name>EndsWith</Name>
|
<Name>EndsWith</Name>
|
||||||
<Return>System.Boolean</Return>
|
<Return>System.Boolean</Return>
|
||||||
</Method>
|
</Method>
|
||||||
|
<Method>
|
||||||
|
<Imports>
|
||||||
|
<Import>CS2JNet.System.StringSupport</Import>
|
||||||
|
</Imports>
|
||||||
|
<Java>StringSupport.equals(${arg1}, ${arg2})</Java>
|
||||||
|
<Params>
|
||||||
|
<Param>
|
||||||
|
<Name>arg1</Name>
|
||||||
|
<Type>System.String</Type>
|
||||||
|
</Param>
|
||||||
|
<Param>
|
||||||
|
<Name>arg2</Name>
|
||||||
|
<Type>System.String</Type>
|
||||||
|
</Param>
|
||||||
|
</Params>
|
||||||
|
<Name>Equals</Name>
|
||||||
|
<Return>System.Boolean</Return>
|
||||||
|
</Method>
|
||||||
<Method>
|
<Method>
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>CS2JNet.System.StringSupport</Import>
|
<Import>CS2JNet.System.StringSupport</Import>
|
||||||
|
36
CS2JLibrary/NetFramework/System/Web/HttpException.xml
Normal file
36
CS2JLibrary/NetFramework/System/Web/HttpException.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This file is
|
||||||
|
|
||||||
|
Copyright 2007,2008,2009,2010 Rustici Software, LLC
|
||||||
|
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
|
||||||
|
|
||||||
|
-->
|
||||||
|
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
|
||||||
|
<Imports>
|
||||||
|
<Import>CS2JNet.System.Web.HttpException</Import>
|
||||||
|
</Imports>
|
||||||
|
<Java>HttpException</Java>
|
||||||
|
<Name>System.Web.HttpException</Name>
|
||||||
|
<Uses />
|
||||||
|
<Inherits>
|
||||||
|
<Type>System.Object</Type>
|
||||||
|
</Inherits>
|
||||||
|
<Methods>
|
||||||
|
</Methods>
|
||||||
|
<Properties>
|
||||||
|
<Property>
|
||||||
|
<Type>System.String</Type>
|
||||||
|
<Name>Message</Name>
|
||||||
|
<Get>${this:16}.getMessage()</Get>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
<Events />
|
||||||
|
<Indexers />
|
||||||
|
<Constructors />
|
||||||
|
<Fields />
|
||||||
|
<Casts />
|
||||||
|
<UnaryOps />
|
||||||
|
<BinaryOps />
|
||||||
|
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>kPj7P304u25a8Q4THlxPmOnIaGY=</DigestValue></Reference></SignedInfo><SignatureValue>Rz8lfdu/sjTURDxRTaWtcgqGWcjeeNFLQdllnLnonhyxXe+R3GxCa5JZYqOSvdYlM1Yg0s8VJw6jtKDPx1vS1r6pjgEIcy9ORzV2TUjk0QEHiU0uWyFm1RZhwWii6WdwhE2JB5a8l2wbIROFc37syIxLZghdD8BNupIBWtr7RhU=</SignatureValue></Signature></Class>
|
2
CS2JLibrary/build.properties
Executable file → Normal file
2
CS2JLibrary/build.properties
Executable file → Normal file
@ -6,4 +6,4 @@ classes.dir=${build.dir}/classes
|
|||||||
jar.dir=${build.dir}/jar
|
jar.dir=${build.dir}/jar
|
||||||
zip.dir=${build.dir}/zip
|
zip.dir=${build.dir}/zip
|
||||||
java.target.vm=1.5
|
java.target.vm=1.5
|
||||||
|
src.zip=${zip.dir}/cs2jlibrary-src.zip
|
@ -15,6 +15,7 @@ public class MailMessage
|
|||||||
private MailAddressCollection _bcc;
|
private MailAddressCollection _bcc;
|
||||||
private MailAddressCollection _cc;
|
private MailAddressCollection _cc;
|
||||||
private MailAddressCollection _to;
|
private MailAddressCollection _to;
|
||||||
|
private boolean _html;
|
||||||
private String _body;
|
private String _body;
|
||||||
private InternetAddress _from;
|
private InternetAddress _from;
|
||||||
private String _subject;
|
private String _subject;
|
||||||
@ -34,6 +35,16 @@ public class MailMessage
|
|||||||
return _to;
|
return _to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isHtml()
|
||||||
|
{
|
||||||
|
return _html;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHtml(boolean value)
|
||||||
|
{
|
||||||
|
this._html = value;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBody() throws Exception
|
public String getBody() throws Exception
|
||||||
{
|
{
|
||||||
return _body;
|
return _body;
|
||||||
|
13
CS2JLibrary/src/CS2JNet/System/Web/HttpException.java
Normal file
13
CS2JLibrary/src/CS2JNet/System/Web/HttpException.java
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package RusticiSoftware.System.Web;
|
||||||
|
|
||||||
|
public class HttpException extends Exception {
|
||||||
|
private int httpCode = -1;
|
||||||
|
public int GetHttpCode(){
|
||||||
|
return httpCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HttpException(int httpCode, String message){
|
||||||
|
super(message);
|
||||||
|
this.httpCode = httpCode;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user