public Builder accountId(String accountId) { if (accountId != null) { throw new JmapFieldNotSupportedException(ISSUER, "accountId"); } return this; }
private Stream<JmapResponse> errorNotImplemented(JmapFieldNotSupportedException error, AuthenticatedProtocolRequest request) { return Stream.of( JmapResponse.builder() .clientId(request.getClientId()) .error(generateInvalidArgumentError("The field '" + error.getField() + "' of '" + error.getIssuer() + "' is not supported")) .build()); }
public Builder accountId(String accountId) { if (accountId != null) { throw new JmapFieldNotSupportedException(ISSUER, "accountId"); } return this; }
public Builder ifInState(String ifInState) { if (ifInState != null) { throw new JmapFieldNotSupportedException(ISSUER, "ifInState"); } return this; }
public Builder accountId(String accountId) { if (accountId != null) { throw new JmapFieldNotSupportedException(ISSUER, "accountId"); } return this; }
public Builder accountId(String accountId) { if (accountId != null) { throw new JmapFieldNotSupportedException(ISSUER, "accountId"); } return this; }
public Builder ifInState(String ifInState) { if (ifInState != null) { throw new JmapFieldNotSupportedException(ISSUER, "ifInState"); } return this; }
public Builder accountId(String accountId) { if (accountId != null) { throw new JmapFieldNotSupportedException(ISSUER, "accountId"); } return this; }
private static void notImplemented(String field) { throw new JmapFieldNotSupportedException(ISSUER, field); } }
public Builder accountId(String accountId) { throw new JmapFieldNotSupportedException(ISSUER, "accountId"); }
public Builder role(Role role) { Preconditions.checkNotNull(role); throw new JmapFieldNotSupportedException(ISSUER, "role"); }
public Builder sortOrder(SortOrder sortOrder) { Preconditions.checkNotNull(sortOrder); throw new JmapFieldNotSupportedException(ISSUER, "sortOrder"); }