Skip to content

Commit 1fbd90d

Browse files
committed
Clean-up from 2.5
Remove deprecated Protocol constants, unecessary "restrictid" annotations Bumped internal version to 2,6 SNAPSHOT
1 parent ca5c7a7 commit 1fbd90d

File tree

12 files changed

+5
-64
lines changed

12 files changed

+5
-64
lines changed

org.restlet.gwt/org.restlet.gwt/src/main/java/org/restlet/client/data/Protocol.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ public final class Protocol {
2222
/** Indicates that the port number is undefined. */
2323
public static final int UNKNOWN_PORT = -1;
2424

25-
/**
26-
* AJP 1.3 protocol to communicate with Apache HTTP server or Microsoft IIS.
27-
*/
28-
public static final Protocol AJP = new Protocol("ajp", "AJP",
29-
"Apache Jakarta Protocol", 8009);
30-
3125
/** All protocols wildcard. */
3226
public static final Protocol ALL = new Protocol("all", "ALL",
3327
"Wildcard for all protocols", UNKNOWN_PORT);
@@ -121,9 +115,7 @@ public static Protocol valueOf(String name) {
121115
Protocol result = null;
122116

123117
if (!StringUtils.isNullOrEmpty(name)) {
124-
if (name.equalsIgnoreCase(AJP.getSchemeName())) {
125-
result = AJP;
126-
} else if (name.equalsIgnoreCase(CLAP.getSchemeName())) {
118+
if (name.equalsIgnoreCase(CLAP.getSchemeName())) {
127119
result = CLAP;
128120
} else if (name.equalsIgnoreCase(FILE.getSchemeName())) {
129121
result = FILE;

org.restlet.gwt/org.restlet.gwt/src/main/java/org/restlet/client/engine/Engine.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,8 @@ public void registerDefaultConnectors() {
372372
public void registerDefaultProtocols() {
373373
getRegisteredProtocols().add(
374374
new org.restlet.client.engine.connector.HttpProtocolHelper());
375-
getRegisteredProtocols().add(
376-
new org.restlet.client.engine.connector.WebDavProtocolHelper());
377375
}
378376

379-
380-
381-
382-
383-
384377
/**
385378
* Sets the logger facade to use.
386379
*

org.restlet.java/org.restlet.example/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<groupId>org.restlet</groupId>
3939
<artifactId>org.restlet.ext.fileupload</artifactId>
4040
<version>${project.version}</version>
41+
<type>pom</type>
4142
</dependency>
4243
<dependency>
4344
<groupId>org.restlet</groupId>

org.restlet.java/org.restlet.ext.guice/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,11 @@
2020
<artifactId>guice</artifactId>
2121
<version>${lib-guice-version}</version>
2222
</dependency>
23-
<dependency>
24-
<groupId>com.google.guava</groupId>
25-
<artifactId>guava</artifactId>
26-
<version>${lib-guava-version}</version>
27-
</dependency>
2823
<dependency>
2924
<groupId>javax.inject</groupId>
3025
<artifactId>javax.inject</artifactId>
3126
<version>${lib-javax-inject-version}</version>
3227
</dependency>
33-
<dependency>
34-
<groupId>aopalliance</groupId>
35-
<artifactId>aopalliance</artifactId>
36-
<version>${lib-aopalliance-version}</version>
37-
</dependency>
3828
<dependency>
3929
<groupId>org.restlet</groupId>
4030
<artifactId>org.restlet</artifactId>

org.restlet.java/org.restlet.ext.jaxb/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
<artifactId>jaxb-api</artifactId>
2626
<version>${lib-jaxb-api-version}</version>
2727
</dependency>
28-
<dependency>
29-
<groupId>com.sun.istack</groupId>
30-
<artifactId>istack-commons-runtime</artifactId>
31-
<version>${lib-sun-istack-version}</version>
32-
</dependency>
33-
3428
<dependency>
3529
<groupId>org.restlet</groupId>
3630
<artifactId>org.restlet</artifactId>

org.restlet.java/org.restlet.ext.velocity/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<description>Integration with Apache Velocity.</description>
1616

1717
<dependencies>
18-
<dependency>
19-
<groupId>commons-collections</groupId>
20-
<artifactId>commons-collections</artifactId>
21-
<version>${lib-commons-collections-version}</version>
22-
</dependency>
2318
<dependency>
2419
<groupId>org.apache.velocity</groupId>
2520
<artifactId>velocity-engine-core</artifactId>

org.restlet.java/org.restlet/src/main/java/org/restlet/data/Protocol.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ public final class Protocol {
2222
/** Indicates that the port number is undefined. */
2323
public static final int UNKNOWN_PORT = -1;
2424

25-
/**
26-
* AJP 1.3 protocol to communicate with Apache HTTP server or Microsoft IIS.
27-
*/
28-
public static final Protocol AJP = new Protocol("ajp", "AJP", "Apache Jakarta Protocol", 8009);
29-
3025
/** All protocols wildcard. */
3126
public static final Protocol ALL = new Protocol("all", "ALL", "Wildcard for all protocols", UNKNOWN_PORT);
3227

@@ -77,17 +72,6 @@ public final class Protocol {
7772
/** JDBC protocol. */
7873
public static final Protocol JDBC = new Protocol("jdbc", "JDBC", "Java DataBase Connectivity", UNKNOWN_PORT);
7974

80-
/**
81-
* OBAP (OSGi Bundle Access Protocol) is a custom scheme to access to
82-
* representations via bundles referenced using their symbolic name. Example
83-
* URI: "obap://org.restlet/org/restlet/Restlet.class".<br>
84-
* <br>
85-
* In order to work, OBAP requires a client connector provided by the extension
86-
* for the OSGi platform.
87-
*/
88-
public static final Protocol OBAP = new Protocol("obap", "OBAP", "OSGi Bundle Access Protocol",
89-
Protocol.UNKNOWN_PORT, true);
90-
9175
/**
9276
* RIAP (Restlet Internal Access Protocol) is a custom scheme to access
9377
* representations via internal calls to virtual hosts/components. Example URIs:
@@ -124,9 +108,7 @@ public static Protocol valueOf(String name) {
124108
Protocol result = null;
125109

126110
if (!StringUtils.isNullOrEmpty(name)) {
127-
if (name.equalsIgnoreCase(AJP.getSchemeName())) {
128-
result = AJP;
129-
} else if (name.equalsIgnoreCase(CLAP.getSchemeName())) {
111+
if (name.equalsIgnoreCase(CLAP.getSchemeName())) {
130112
result = CLAP;
131113
} else if (name.equalsIgnoreCase(FILE.getSchemeName())) {
132114
result = FILE;

org.restlet.java/org.restlet/src/main/java/org/restlet/engine/Engine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ public class Engine {
8787
public static final String MAJOR_NUMBER = "2";
8888

8989
/** Minor version number. */
90-
public static final String MINOR_NUMBER = "5";
90+
public static final String MINOR_NUMBER = "6";
9191

9292
/** Release number. */
93-
public static final String RELEASE_NUMBER = "-RC1";
93+
public static final String RELEASE_NUMBER = "-SNAPSHOT";
9494

9595
/** The org.restlet log level . */
9696
private static volatile Level restletLogLevel;

org.restlet.java/org.restlet/src/main/java/org/restlet/engine/connector/HttpExchangeCall.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
*
2929
* @author Jerome Louvel
3030
*/
31-
@SuppressWarnings("restriction")
3231
public class HttpExchangeCall extends ServerCall {
3332

3433
/** The wrapped HTTP exchange. */

org.restlet.java/org.restlet/src/main/java/org/restlet/engine/connector/HttpServerHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*
2626
* @author Jerome Louvel
2727
*/
28-
@SuppressWarnings("restriction")
2928
public class HttpServerHelper extends NetServerHelper {
3029
/** The underlying HTTP server. */
3130
private volatile HttpServer server;

0 commit comments

Comments
 (0)