Skip to content

Commit

Permalink
Renamed the route option "decorated" to "managed".
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Sep 1, 2016
1 parent 7fe007a commit 5fe4434
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Expand Up @@ -59,8 +59,8 @@ public interface RouteConfig {


RouteOptions zone(String zone); RouteOptions zone(String zone);


boolean decorated(); boolean managed();


RouteOptions decorated(boolean decorated); RouteOptions managed(boolean managed);


} }
Expand Up @@ -65,7 +65,7 @@ public boolean needsParams() {
public final HttpStatus handle(Channel ctx, boolean isKeepAlive, Req req, Object extra) { public final HttpStatus handle(Channel ctx, boolean isKeepAlive, Req req, Object extra) {
U.notNull(req, "HTTP request"); U.notNull(req, "HTTP request");


return options.decorated() return options.managed()
? handleDecorating(ctx, isKeepAlive, req, extra) ? handleDecorating(ctx, isKeepAlive, req, extra)
: handleNonDecorating(ctx, isKeepAlive, req, extra); : handleNonDecorating(ctx, isKeepAlive, req, extra);
} }
Expand Down
Expand Up @@ -45,7 +45,7 @@ public class RouteOptions extends RapidoidThing implements RouteConfig {


private volatile String zone; private volatile String zone;


private volatile boolean decorated = true; private volatile boolean managed = true;


private volatile TransactionMode transactionMode = TransactionMode.NONE; private volatile TransactionMode transactionMode = TransactionMode.NONE;


Expand Down Expand Up @@ -143,13 +143,13 @@ public RouteOptions zone(String zone) {
} }


@Override @Override
public boolean decorated() { public boolean managed() {
return decorated; return managed;
} }


@Override @Override
public RouteOptions decorated(boolean decorated) { public RouteOptions managed(boolean managed) {
this.decorated = decorated; this.managed = managed;
return this; return this;
} }


Expand All @@ -163,7 +163,7 @@ public RouteOptions copy() {
copy.roles(U.arrayOf(String.class, roles)); copy.roles(U.arrayOf(String.class, roles));
copy.wrappers(wrappers()); copy.wrappers(wrappers());
copy.zone(zone()); copy.zone(zone());
copy.decorated(decorated()); copy.managed(managed());


return copy; return copy;
} }
Expand All @@ -176,7 +176,7 @@ public boolean equals(Object o) {
RouteOptions that = (RouteOptions) o; RouteOptions that = (RouteOptions) o;


if (mvc != that.mvc) return false; if (mvc != that.mvc) return false;
if (decorated != that.decorated) return false; if (managed != that.managed) return false;
if (contentType != null ? !contentType.equals(that.contentType) : that.contentType != null) return false; if (contentType != null ? !contentType.equals(that.contentType) : that.contentType != null) return false;
if (view != null ? !view.equals(that.view) : that.view != null) return false; if (view != null ? !view.equals(that.view) : that.view != null) return false;
if (zone != null ? !zone.equals(that.zone) : that.zone != null) return false; if (zone != null ? !zone.equals(that.zone) : that.zone != null) return false;
Expand All @@ -192,7 +192,7 @@ public int hashCode() {
result = 31 * result + (view != null ? view.hashCode() : 0); result = 31 * result + (view != null ? view.hashCode() : 0);
result = 31 * result + (mvc ? 1 : 0); result = 31 * result + (mvc ? 1 : 0);
result = 31 * result + (zone != null ? zone.hashCode() : 0); result = 31 * result + (zone != null ? zone.hashCode() : 0);
result = 31 * result + (decorated ? 1 : 0); result = 31 * result + (managed ? 1 : 0);
result = 31 * result + (transactionMode != null ? transactionMode.hashCode() : 0); result = 31 * result + (transactionMode != null ? transactionMode.hashCode() : 0);
result = 31 * result + (roles != null ? roles.hashCode() : 0); result = 31 * result + (roles != null ? roles.hashCode() : 0);
result = 31 * result + Arrays.hashCode(wrappers); result = 31 * result + Arrays.hashCode(wrappers);
Expand Down
Expand Up @@ -54,7 +54,7 @@ public String toString() {


@Override @Override
public boolean needsParams() { public boolean needsParams() {
return options.decorated(); return options.managed();
} }


} }
Expand Up @@ -396,8 +396,8 @@ public OnRoute zone(String zone) {
return this; return this;
} }


public OnRoute decorated(boolean decorated) { public OnRoute managed(boolean managed) {
options.decorated(decorated); options.managed(managed);
return this; return this;
} }


Expand Down

0 comments on commit 5fe4434

Please sign in to comment.