Skip to content

Commit

Permalink
1) codahale wanted "socket+ssl" not "blocking+ssl"
Browse files Browse the repository at this point in the history
2) Clean up some stray imports
  • Loading branch information
cheddar committed Apr 14, 2012
1 parent ecc813e commit 0a6449e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -69,7 +69,7 @@ public enum ConnectorType {
private String rootPath = "/*";

@NotNull
@Pattern(regexp = "(blocking(?:\\+ssl)?|nonblocking(?:\\+ssl)?|legacy)",
@Pattern(regexp = "(blocking?|nonblocking(?:\\+ssl)?|legacy|socket\\+ssl)",
flags = {Pattern.Flag.CASE_INSENSITIVE})
@JsonProperty
private String connectorType = "blocking";
Expand Down Expand Up @@ -183,7 +183,7 @@ public ConnectorType getConnectorType() {
return ConnectorType.SOCKET;
} else if ("nonblocking".equalsIgnoreCase(connectorType)) {
return ConnectorType.SELECT_CHANNEL;
} else if ("blocking+ssl".equalsIgnoreCase(connectorType)) {
} else if ("socket+ssl".equalsIgnoreCase(connectorType)) {
return ConnectorType.SOCKET_SSL;
} else if ("nonblocking+ssl".equalsIgnoreCase(connectorType)) {
return ConnectorType.SELECT_CHANNEL_SSL;
Expand Down
@@ -1,7 +1,6 @@
package com.yammer.dropwizard.config;

import com.google.common.base.Optional;
import com.yammer.dropwizard.validation.ValidationMethod;
import org.codehaus.jackson.annotate.JsonProperty;
import org.eclipse.jetty.util.ssl.SslContextFactory;

Expand Down

0 comments on commit 0a6449e

Please sign in to comment.