Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add validation of short messages greater than 255 bytes in length; ad…

…ded version class
  • Loading branch information...
commit b744daf272a9e87dfd7d28fb3fa357e7572d6fd5 1 parent f4498c7
@jjlauer jjlauer authored
View
13 Dependency.txt
@@ -0,0 +1,13 @@
+
+The following files have been resolved:
+ ch.qos.logback:logback-classic:jar:0.9.29:test
+ ch.qos.logback:logback-core:jar:0.9.29:test
+ cloudhopper:ch-commons-charset:jar:2.2.0:compile
+ cloudhopper:ch-commons-gsm:jar:2.1.0:test
+ cloudhopper:ch-commons-util:jar:5.1.0:compile
+ jboss:netty:jar:3.2.4:compile
+ joda:joda-time:jar:1.6.2:compile
+ junit:junit:jar:4.8.2:test
+ org.slf4j:log4j-over-slf4j:jar:1.6.1:provided
+ org.slf4j:slf4j-api:jar:1.6.1:compile
+
View
19 src/main/java/com/cloudhopper/smpp/Version.java
@@ -0,0 +1,19 @@
+/** DO NOT EDIT THIS FILE. IT IS AUTO GENERATED BY MAVEN */
+package com.cloudhopper.smpp;
+public final class Version {
+ private static final String TIMESTAMP="20110726-2121";
+ private static final String VERSION="4.1.0";
+ private static final String NAME="ch-smpp";
+ private static final String VENDOR="cloudhopper";
+ private static final String LONG_VERSION="4.1.0 (Build @ 20110726-2121)";
+ /** Returns the library vendor such as "cloudhopper" */
+ static public String getVendor() { return VENDOR; }
+ /** Returns the library build timestamp such as "20110726-2121" */
+ static public String getTimestamp() { return TIMESTAMP; }
+ /** Returns the library name such as "ch-smpp" */
+ static public String getName() { return NAME; }
+ /** Returns the library version such as "4.1.0" */
+ static public String getVersion() { return VERSION; }
+ /** Returns a longer library version that includes the timestamp such as "4.1.0 (Build @ 20110726-2121)" */
+ static public String getLongVersion() { return LONG_VERSION; }
+}
View
32 src/main/java/com/cloudhopper/smpp/type/SmppInvalidArgumentException.java
@@ -0,0 +1,32 @@
+/**
+ * Copyright (C) 2011 Twitter, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
+ * file except in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed
+ * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+package com.cloudhopper.smpp.type;
+
+/**
+ * Thrown when an argument was used that is invalid.
+ *
+ * @author joelauer (twitter: @jjlauer or <a href="http://twitter.com/jjlauer" target=window>http://twitter.com/jjlauer</a>)
+ */
+public class SmppInvalidArgumentException extends RecoverablePduException {
+ static final long serialVersionUID = 1L;
+
+ public SmppInvalidArgumentException(String msg) {
+ super(null, msg);
+ }
+
+ public SmppInvalidArgumentException(String msg, Throwable t) {
+ super(null, msg, t);
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.