|
@@ -34,23 +34,35 @@ public class PutOpParam extends HttpOpParam<PutOpParam.Op> {
|
|
SETPERMISSION(false, HttpURLConnection.HTTP_OK),
|
|
SETPERMISSION(false, HttpURLConnection.HTTP_OK),
|
|
SETTIMES(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);
|
|
NULL(false, HttpURLConnection.HTTP_NOT_IMPLEMENTED);
|
|
|
|
|
|
final boolean doOutputAndRedirect;
|
|
final boolean doOutputAndRedirect;
|
|
final int expectedHttpResponseCode;
|
|
final int expectedHttpResponseCode;
|
|
|
|
+ final boolean requireAuth;
|
|
|
|
|
|
Op(final boolean doOutputAndRedirect, final int expectedHttpResponseCode) {
|
|
Op(final boolean doOutputAndRedirect, final int expectedHttpResponseCode) {
|
|
|
|
+ this(doOutputAndRedirect, expectedHttpResponseCode, false);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Op(final boolean doOutputAndRedirect, final int expectedHttpResponseCode,
|
|
|
|
+ final boolean requireAuth) {
|
|
this.doOutputAndRedirect = doOutputAndRedirect;
|
|
this.doOutputAndRedirect = doOutputAndRedirect;
|
|
this.expectedHttpResponseCode = expectedHttpResponseCode;
|
|
this.expectedHttpResponseCode = expectedHttpResponseCode;
|
|
|
|
+ this.requireAuth = requireAuth;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public HttpOpParam.Type getType() {
|
|
public HttpOpParam.Type getType() {
|
|
return HttpOpParam.Type.PUT;
|
|
return HttpOpParam.Type.PUT;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean getRequireAuth() {
|
|
|
|
+ return requireAuth;
|
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public boolean getDoOutput() {
|
|
public boolean getDoOutput() {
|