|
@@ -34,23 +34,35 @@ public class PutOpParam extends HttpOpParam<PutOpParam.Op> {
|
|
|
SETPERMISSION(false, HttpURLConnection.HTTP_OK),
|
|
|
SETTIMES(false, HttpURLConnection.HTTP_OK),
|
|
|
|
|
|
- RENEWDELEGATIONTOKEN(false, HttpURLConnection.HTTP_OK),
|
|
|
- CANCELDELEGATIONTOKEN(false, HttpURLConnection.HTTP_OK),
|
|
|
+ RENEWDELEGATIONTOKEN(false, HttpURLConnection.HTTP_OK, true),
|
|
|
+ CANCELDELEGATIONTOKEN(false, HttpURLConnection.HTTP_OK, true),
|
|
|
|
|
|
NULL(false, HttpURLConnection.HTTP_NOT_IMPLEMENTED);
|
|
|
|
|
|
final boolean doOutput;
|
|
|
final int expectedHttpResponseCode;
|
|
|
+ final boolean requireAuth;
|
|
|
|
|
|
Op(final boolean doOutput, final int expectedHttpResponseCode) {
|
|
|
+ this(doOutput, expectedHttpResponseCode, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ Op(final boolean doOutput, final int expectedHttpResponseCode,
|
|
|
+ final boolean requireAuth) {
|
|
|
this.doOutput = doOutput;
|
|
|
this.expectedHttpResponseCode = expectedHttpResponseCode;
|
|
|
+ this.requireAuth = requireAuth;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public HttpOpParam.Type getType() {
|
|
|
return HttpOpParam.Type.PUT;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean getRequireAuth() {
|
|
|
+ return requireAuth;
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public boolean getDoOutput() {
|
|
@@ -82,4 +94,4 @@ public class PutOpParam extends HttpOpParam<PutOpParam.Op> {
|
|
|
public String getName() {
|
|
|
return NAME;
|
|
|
}
|
|
|
-}
|
|
|
+}
|